Repository navigation
Conversation
Han5991
force-pushed
the
fix-jitless-typescript-error
branch
from
January 14, 2026 13:27
202f642 to
e56e36b
Compare
Contributor
Author
Thanks for the feedback. I'll review the logic and move the check to the appropriate place as suggested. I will also improve the error message to be more descriptive. |
Han5991
force-pushed
the
fix-jitless-typescript-error
branch
2 times, most recently
from
January 14, 2026 14:06
08c7bc7 to
e6cb215
Compare
Han5991
force-pushed
the
fix-jitless-typescript-error
branch
from
January 14, 2026 14:38
bf1ec67 to
ca857df
Compare
WebAssembly is disabled when Node.js is run with --jitless. The internal TypeScript stripper relies on WebAssembly, and previously failed obscurely with a ReferenceError in this mode. This commit adds an explicit check for WebAssembly support when loading the TypeScript parser. If WebAssembly is unavailable, it now throws a descriptive ERR_WEBASSEMBLY_NOT_SUPPORTED error. Fixes: nodejs#61353
Han5991
force-pushed
the
fix-jitless-typescript-error
branch
from
January 14, 2026 14:44
ca857df to
ef5444a
Compare
The internal TypeScript stripper relies on WebAssembly, which is disabled in --jitless mode. This PR updates
assertTypeScript to explicitly throw ERR_WEBASSEMBLY_NOT_SUPPORTED instead of failing obscurely when WebAssembly
is unavailable.
A regression test has been added to test/es-module/test-typescript.mjs.
Fixes: #61353