bytebuffer.js icon indicating copy to clipboard operation
bytebuffer.js copied to clipboard

hex_encode error

Open hongrunhui opened this issue 7 years ago • 2 comments

image image what is this? It's wrong when I run this code in chrome console;

hongrunhui avatar Oct 31 '18 03:10 hongrunhui

You can't run the sources directly without building them. What you are seeing there is a bit of meta programming that evaluates to specifically tailored code for either node buffers-, arraybuffer- or dataview-based versions.

dcodeIO avatar Oct 31 '18 04:10 dcodeIO

Look, anything that is between /*``*/ Is a comment, therefore ignored by the language you're using. So if we are realistic, the code that errors out is in fact var value =,, and that's obviously wrong. You cannot start a declaration with ,. Comments don't run, if you wish it to run remove the /**\.

doggopwn avatar Nov 16 '19 03:11 doggopwn