Skip to content

Commit

Permalink
feat(cli): Support node v23
Browse files Browse the repository at this point in the history
  • Loading branch information
spotandjake committed Nov 21, 2024
1 parent 5ad9e75 commit c08ec7d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli/bin/grainrun.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit c08ec7d

Please sign in to comment.