tophf 4 éve
szülő
commit
0d0abcaea3
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      test/mock/polyfill.js

+ 1 - 2
test/mock/polyfill.js

@@ -20,14 +20,13 @@ global.browser = {
     getURL: path => path,
   },
 };
-
+if (!window.Response) window.Response = { prototype: {} };
 const domProps = Object.getOwnPropertyDescriptors(window);
 for (const k of Object.keys(domProps)) {
   if (k.endsWith('Storage') || k in global) delete domProps[k];
 }
 delete domProps.performance;
 Object.defineProperties(global, domProps);
-global.Response = { prototype: {} };
 global.__VAULT_ID__ = false;
 Object.assign(global, require('#/common/safe-globals'));
 Object.assign(global, require('#/injected/safe-globals-injected'));