diff options
Diffstat (limited to 'cli/node/analyze.rs')
-rw-r--r-- | cli/node/analyze.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cli/node/analyze.rs b/cli/node/analyze.rs index 9b449f675..acf7a662f 100644 --- a/cli/node/analyze.rs +++ b/cli/node/analyze.rs @@ -19,6 +19,7 @@ static NODE_GLOBALS: &[&str] = &[ "clearImmediate", "clearInterval", "clearTimeout", + "console", "global", "process", "setImmediate", @@ -194,9 +195,10 @@ mod tests { "var globalThis = {}", ";var Buffer = globalThis.Buffer;", "var clearImmediate = globalThis.clearImmediate;var clearInterval = globalThis.clearInterval;", - "var clearTimeout = globalThis.clearTimeout;var global = globalThis.global;", - "var process = globalThis.process;var setImmediate = globalThis.setImmediate;", - "var setInterval = globalThis.setInterval;var setTimeout = globalThis.setTimeout;\n", + "var clearTimeout = globalThis.clearTimeout;var console = globalThis.console;", + "var global = globalThis.global;var process = globalThis.process;", + "var setImmediate = globalThis.setImmediate;var setInterval = globalThis.setInterval;", + "var setTimeout = globalThis.setTimeout;\n", "export const x = 1;" ), NODE_GLOBAL_THIS_NAME.as_str(), |