jitless nodejs #28800
Description
Activity
You can enable JIT-less mode by running Node.js with the
--jitlessflag:node --jitless script.jsI run
node --jitless scripts.jsand get an error:node: bad option: --jitless.
My node version isv10.16.0, my operation system isUbuntu 18.042 LTS.It is only available since Node.js 12.0.0
I think this is answered, but feel free to comment if you have more questions.
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 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?
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.Does this mean that no version of node is currently supported by wasm running without jit?
@darkmoon233 correct.
- added a commit that references this issue
on Mar 5, 2020 - added a commit that references this issue
on Mar 9, 2020 - added a commit that references this issue
on Mar 9, 2020 - added a commit that references this issue
on Mar 23, 2020 - added a commit that references this issue
on Mar 30, 2020 - added 2 commits that reference this issue
on Apr 1, 2020 - added a commit that references this issue
on Jul 10, 2025 - added a commit that references this issue
on Feb 12, 2026 - added a commit that references this issue
on Feb 13, 2026 - added a commit that references this issue
on Oct 7, 2026
We know v8 supports JavaScript execution without allocating executable memory at runtime.Is there any way i can use this feature in nodejs ?
I'm working for some benchmarks about wasm. I really need know whether node use jit when run wasm.