node-jpickle icon indicating copy to clipboard operation
node-jpickle copied to clipboard

Fix opcode switch statement & long1 parsing

Open foxt opened this issue 3 years ago • 1 comments

foxt avatar Dec 21 '21 03:12 foxt

Realised that always running String.fromCharCode will break compatibility with node, but fixes compatibility with the buffer polyfill I am using on the web. (https://github.com/feross/buffer)

Might be an idea to check if it is a string before running the switch statement, or just removing that change entirely.

foxt avatar Dec 21 '21 03:12 foxt