Visitar URL original
doc,lib,src: throw on missing WebAssembly or RX support by ShogunPanda · Pull Request #66533 · nodejs/node · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup
Signed-off-by: Paolo Insogna <paolo@cowtech.it>
  • Loading branch information
ShogunPanda committed Oct 6, 2026
commit 0484eca87d19c551fb0c087aae3b632cc5a8c4a3
8 changes: 8 additions & 0 deletions doc/node.1
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,14 @@ Opens the REPL even if stdin does not appear to be a terminal.
Disable runtime allocation of executable memory. This may be
required on some platforms for security reasons. It can also reduce attack
surface on other platforms, but the performance impact may be severe.
When WebAssembly is unavailable in this mode, TypeScript parsing and WebAssembly
module imports throw \fBERR_WEBASSEMBLY_NOT_SUPPORTED\fR. Node.js does not
guarantee alternative implementations of features that require WebAssembly or
runtime allocation of executable memory when those capabilities are unavailable.
This flag controls V8's runtime code generation. It does not impose an
operating-system restriction on executable memory allocated by native addons or
\fBnode:ffi\fR. FFI operations that require unavailable executable memory can
throw \fBERR_RX_MEMORY_NOT_SUPPORTED\fR.
.
.It Fl -localstorage-file Ns = Ns Ar file
The file used to store \fBlocalStorage\fR data. If the file does not exist, it is
Expand Down
2 changes: 1 addition & 1 deletion src/node_errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void OOMErrorHandler(const char* location, const v8::OOMDetails& details);
V(ERR_OPERATION_FAILED, TypeError) \
V(ERR_OPTIONS_BEFORE_BOOTSTRAPPING, Error) \
V(ERR_OUT_OF_RANGE, RangeError) \
V(ERR_RX_MEMORY_NOT_SUPPORTED, Error) \
V(ERR_RX_MEMORY_NOT_SUPPORTED, Error) \
V(ERR_SCRIPT_EXECUTION_INTERRUPTED, Error) \
V(ERR_SCRIPT_EXECUTION_TIMEOUT, Error) \
V(ERR_SOURCE_PHASE_NOT_DEFINED, SyntaxError) \
Expand Down
6 changes: 1 addition & 5 deletions test/es-module/test-esm-wasm-jitless.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Flags: --jitless
import { skip } from '../common/index.mjs';
import '../common/index.mjs';
import assert from 'node:assert/strict';
import * as fixtures from '../common/fixtures.mjs';

if (typeof WebAssembly !== 'undefined') {
skip('WebAssembly is available in jitless mode');
}

const url = fixtures.fileURL('es-modules/simple.wasm').href;
const error = {
code: 'ERR_WEBASSEMBLY_NOT_SUPPORTED',
Expand Down
Loading