diff --git a/cli/bin/grainrun.js b/cli/bin/grainrun.js index 8532637ff..2775c3acc 100644 --- a/cli/bin/grainrun.js +++ b/cli/bin/grainrun.js @@ -10,7 +10,11 @@ const v8 = require("v8"); * * This seems to work for our needs with Node 18, but we should be cautious when updating. */ -v8.setFlagsFromString("--experimental-wasm-return-call"); +if ( + !process.versions.node.startsWith("22.") && + !process.versions.node.startsWith("23.") +) + v8.setFlagsFromString("--experimental-wasm-return-call"); const { readFile } = require("fs/promises"); const { WASI } = require("wasi");