pieroxy / lz-string

LZ-based compression algorithm for JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash with large strings when running on Hermes (React Native)

gatouillatpy opened this issue · comments

{
  "stack": [
    "client/node_modules/lz-string/libs/lz-string.js/context_wc@214:27",
    "client/node_modules/lz-string/libs/lz-string.js/_compress@107:20",
    "client/src/logic/Logger.ts/compress@403:59",
    "client/node_modules/@babel/runtime/helpers/asyncToGenerator.js/key@3:19",
    "client/node_modules/@babel/runtime/helpers/asyncToGenerator.js/asyncGeneratorStep@22:8",
    "client/node_modules/promise/setimmediate/core.js/fn@37:11",
    "client/node_modules/promise/setimmediate/core.js/tryCallOne@123:14",
    "client/node_modules/react-native/Libraries/Core/Timers/JSTimers.js/apply@248:17",
    "client/node_modules/react-native/Libraries/Core/Timers/JSTimers.js/callback@112:6",
    "client/node_modules/react-native/Libraries/Core/Timers/JSTimers.js/_callTimer@162:4",
    "client/node_modules/react-native/Libraries/Core/Timers/JSTimers.js/_callReactNativeMicrotasksPass@413:11",
    "client/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js/_reactNativeMicrotasksCallback@390:11",
    "client/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js/__callReactNativeMicrotasks@132:11",
    "client/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js/fn@367:8",
    "client/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js/__guard@131:9"
  ],
  "message": "Property storage exceeds 196607 properties"
}

This is due to a limitation of Hermes, but I don't think they have any plan to fix it: facebook/hermes#139