diff --git a/packages/core-js/internals/engine-is-browser.js b/packages/core-js/internals/engine-is-browser.js index 26f019662ab7..c612b940155f 100644 --- a/packages/core-js/internals/engine-is-browser.js +++ b/packages/core-js/internals/engine-is-browser.js @@ -3,4 +3,4 @@ var IS_NODE = require('../internals/engine-is-node'); module.exports = !IS_DENO && !IS_NODE && typeof window == 'object' - && window.document && document.nodeType === 9; + && typeof document == 'object';