diff --git a/lib/internal/bootstrap/pre_execution.js b/lib/internal/bootstrap/pre_execution.js index 1fe56478e0ab3f..c780a64b2c9e79 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; }