@blueking/bk-weweb 0.0.26-beta.4 → 0.0.26-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,7 @@ var collectNativeWindowFunc = () => {
13
13
  windowNativeFuncMap[key] = true;
14
14
  }
15
15
  });
16
+ windowNativeFuncMap.Math = true;
16
17
  };
17
18
  collectNativeWindowFunc();
18
19
 
@@ -407,8 +408,8 @@ var SandBox = class {
407
408
  return true;
408
409
  },
409
410
  get: (target, key) => {
410
- if (windowNativeFuncMap[key]) return rawWindow[key];
411
411
  if (key === Symbol.unscopables) return rawWindow[Symbol.unscopables];
412
+ if (windowNativeFuncMap[key]) return rawWindow[key];
412
413
  if (DEV_MICRO_APP_WINDOE_KEY_MAP[key]) return this.fakeWindow[key];
413
414
  if (WINDOW_ALIAS_LIST.includes(key)) return this.proxyWindow;
414
415
  if (key === "document") {
@@ -456,7 +457,7 @@ var SandBox = class {
456
457
  }
457
458
  return void 0;
458
459
  },
459
- has: (target, key) => windowNativeFuncMap[key] || !!target[key] || !!rawWindow[key],
460
+ has: (target, key) => windowNativeFuncMap[key] || key in target || key in rawWindow,
460
461
  // Object.getOwnPropertyNames(window)
461
462
  ownKeys: (target) => Array.from(new Set(Reflect.ownKeys(rawWindow).concat(Reflect.ownKeys(target)))),
462
463
  set: (target, key, value) => {