Skip to content

Commit

Permalink
sys:es: fix internal check for node.js runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Giannini authored and Matthew Giannini committed Nov 18, 2024
1 parent 7e963bc commit 008d5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/es/fan/Env.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Env extends Obj {
else main.callOn(main.parent().make());
}

static __isNode() { return typeof node !== "undefined"; }
static __isNode() { return typeof process !== "undefined"; }

static __node(module=null) {
if (typeof node === "undefined") throw UnsupportedErr.make("Only supported in Node runtime");
Expand Down

0 comments on commit 008d5b9

Please sign in to comment.