emscripten
emscripten copied to clipboard
Node with Emscripten
Hi ,
when I typed : "nab @nab : ~ /llvm/test $ node test.c "
it gives me this error :
node.js: 134
throw e; / / process.nextTick error, or 'error' event on first tick
^
SyntaxError: Unexpected token ILLEGAL
Has Module._compile (module.js: 397:25)
at .. js Object (module.js: 408:10)
Has Module.load (module.js: 334:31)
Has Function._load (module.js: 293:12)
at Array.
node runs JavaScript, and test.c contains C code.
Perhaps you want to compile the C to JS using something like emcc test.c -o test.js and then do node test.js.
I think this issue can be closed.