We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download this repo, cd there, and run node. Type this in:
cd
node
var shoco = require("./shoco.js");shoco.decompress(shoco.compress("Hello, World!"));
I get this error:
TypeError: shoco.compress is not a function at repl:1:58 at sigintHandlersWrap (vm.js:22:35) at sigintHandlersWrap (vm.js:96:12) at ContextifyScript.Script.runInThisContext (vm.js:21:12) at REPLServer.defaultEval (repl.js:340:29) at bound (domain.js:280:14) at REPLServer.runBound [as eval] (domain.js:293:12) at REPLServer.<anonymous> (repl.js:538:10) at emitOne (events.js:101:20) at REPLServer.emit (events.js:188:7)
instead of the expected "Hello, World!". FYI, var shoco = require("./shoco.js");Object.keys(shoco); returns:
"Hello, World!"
var shoco = require("./shoco.js");Object.keys(shoco);
[ 'preRun', 'print', 'printErr', 'read', 'readBinary', 'load', 'arguments', 'I', 'postRun', 'Runtime', 'ccall', 'cwrap', 'setValue', 'getValue', 'ALLOC_NORMAL', 'ALLOC_STACK', 'ALLOC_STATIC', 'ALLOC_DYNAMIC', 'ALLOC_NONE', 'allocate', 'Pointer_stringify', 'UTF16ToString', 'stringToUTF16', 'UTF32ToString', 'stringToUTF32', 'HEAP', 'HEAP8', 'HEAP16', 'HEAP32', 'HEAPU8', 'HEAPU16', 'HEAPU32', 'HEAPF32', 'HEAPF64', 'Md', 'addOnPreRun', 'Jd', 'addOnInit', 'Ld', 'addOnPreMain', 'Id', 'addOnExit', 'Kd', 'addOnPostRun', 'intArrayFromString', 'intArrayToString', 'writeStringToMemory', 'writeArrayToMemory', 'writeAsciiToMemory', 'addRunDependency', 'removeRunDependency', 'preloadedImages', 'preloadedAudios', '_malloc', '_memset', '_strlen', '_memcpy', '_free', 'requestFullScreen', 'requestAnimationFrame', 'setCanvasSize', 'pauseMainLoop', 'resumeMainLoop', 'getUserMedia', 'FS_createFolder', 'FS_createPath', 'FS_createDataFile', 'FS_createPreloadedFile', 'FS_createLazyFile', 'FS_createLink', 'FS_createDevice', '_shoco_decompress', '_shoco_compress', 'runPostSets', 'Rd', 'callMain', 're', 'run', 'Vd', 'exit', 'abort', 'calledRun', 'stdin', 'stdout', 'stderr', 'preloadPlugins', 'Ta' ]
BTW, var shoco = require("./shoco.js");shoco._shoco_decompress(shoco._shoco_compress("hi")); returns 0.
var shoco = require("./shoco.js");shoco._shoco_decompress(shoco._shoco_compress("hi"));
0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Download this repo,
cd
there, and runnode
. Type this in:I get this error:
instead of the expected
"Hello, World!"
. FYI,var shoco = require("./shoco.js");Object.keys(shoco);
returns:BTW,
var shoco = require("./shoco.js");shoco._shoco_decompress(shoco._shoco_compress("hi"));
returns0
.The text was updated successfully, but these errors were encountered: