@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.
package/dist/index.esm.js
CHANGED
|
@@ -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
|
|
|
@@ -415,8 +416,8 @@ var SandBox = class {
|
|
|
415
416
|
return true;
|
|
416
417
|
},
|
|
417
418
|
get: (target, key) => {
|
|
418
|
-
if (windowNativeFuncMap[key]) return rawWindow[key];
|
|
419
419
|
if (key === Symbol.unscopables) return rawWindow[Symbol.unscopables];
|
|
420
|
+
if (windowNativeFuncMap[key]) return rawWindow[key];
|
|
420
421
|
if (DEV_MICRO_APP_WINDOE_KEY_MAP[key]) return this.fakeWindow[key];
|
|
421
422
|
if (WINDOW_ALIAS_LIST.includes(key)) return this.proxyWindow;
|
|
422
423
|
if (key === "document") {
|