We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d176be5 commit 130c494Copy full SHA for 130c494
cli/bin/grainrun.js
@@ -8,9 +8,10 @@ const v8 = require("v8");
8
* This method should be used with care. Changing settings after the VM has started may result
9
* in unpredictable behavior, including crashes and data loss; or it may simply do nothing.
10
*
11
- * This seems to work for our needs with Node 18, but we should be cautious when updating.
+ * This is valid in Node 18, 19, 20, and 21.
12
*/
13
-v8.setFlagsFromString("--experimental-wasm-return-call");
+if (process.version.match(/^v(18|19|20|21)\./))
14
+ v8.setFlagsFromString("--experimental-wasm-return-call");
15
16
const { readFile } = require("fs/promises");
17
const { WASI } = require("wasi");
0 commit comments