You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can't work when the Javascript file references a wasm file.
Some code about referencing a wasm file.
var wasmBinaryFile = 'a.out.wasm';
if (!isDataURI(wasmBinaryFile)) {
wasmBinaryFile = locateFile(wasmBinaryFile);
}
I use emscritpten to compile my C++ file to JavaScript. Node.js can run the JavaScript file without --jitless.If i use command like node --jitless a.out.js ,i will get an error node: bad option: --jitless.
Is that mean Node.js can't deal with wasm without jit?
That means you're still not on a version of node that supports jitless. Also worth noting, the WebAssembly global is removed in jitless mode because the wasm interpreter is not ready for production yet.
Activity
targos commentedon Jul 22, 2019
You can enable JIT-less mode by running Node.js with the
--jitlessflag:node --jitless script.jsdarkmoon233 commentedon Jul 22, 2019
I run
node --jitless scripts.jsand get an error:node: bad option: --jitless.My node version is
v10.16.0, my operation system isUbuntu 18.042 LTS.targos commentedon Jul 22, 2019
It is only available since Node.js 12.0.0
targos commentedon Jul 22, 2019
I think this is answered, but feel free to comment if you have more questions.
darkmoon233 commentedon Jul 23, 2019
It can't work when the Javascript file references a wasm file.
Some code about referencing a wasm file.
I use emscritpten to compile my C++ file to JavaScript. Node.js can run the JavaScript file without
--jitless.If i use command likenode --jitless a.out.js,i will get an errornode: bad option: --jitless.Is that mean Node.js can't deal with wasm without jit?
devsnek commentedon Jul 23, 2019
That means you're still not on a version of node that supports jitless. Also worth noting, the
WebAssemblyglobal is removed in jitless mode because the wasm interpreter is not ready for production yet.darkmoon233 commentedon Jul 23, 2019
Does this mean that no version of node is currently supported by wasm running without jit?
devsnek commentedon Jul 23, 2019
@darkmoon233 correct.
cli: allow --jitless V8 flag in NODE_OPTIONS
cli: allow --jitless V8 flag in NODE_OPTIONS
cli: allow --jitless V8 flag in NODE_OPTIONS
cli: allow --jitless V8 flag in NODE_OPTIONS
cli: allow --jitless V8 flag in NODE_OPTIONS
cli: allow --jitless V8 flag in NODE_OPTIONS
cli: allow --jitless V8 flag in NODE_OPTIONS
Allow making pages readable, writable, and executable (#179)
Allow making pages readable, writable, and executable (#179)
Allow making pages readable, writable, and executable (#179)
Allow making pages readable, writable, and executable (#179)