diff --git a/lib/internal/bootstrap/pre_execution.js b/lib/internal/bootstrap/pre_execution.js index 2bc31fb4f8f45c..fad09f49cc8532 100644 --- a/lib/internal/bootstrap/pre_execution.js +++ b/lib/internal/bootstrap/pre_execution.js @@ -149,7 +149,8 @@ function setupWarningHandler() { // https://fetch.spec.whatwg.org/ function setupFetch() { - if (!getOptionValue('--experimental-fetch')) { + if (process.config.variables.node_no_browser_globals || + !getOptionValue('--experimental-fetch')) { return; }