@blueking/bk-weweb 0.0.26-beta.3 → 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") {
|