From 598bde8442418bde1cbc0abe10224d361ef46f09 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Tue, 24 Aug 2021 11:58:04 +0800 Subject: [PATCH] fix typo --- doric-js/bundle/doric-sandbox.es5.js | 3 +++ doric-js/bundle/doric-vm.js | 2 +- doric-js/index.debug.ts | 2 +- doric-js/lib/index.debug.js | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doric-js/bundle/doric-sandbox.es5.js b/doric-js/bundle/doric-sandbox.es5.js index 57aa605f..1c1016f8 100644 --- a/doric-js/bundle/doric-sandbox.es5.js +++ b/doric-js/bundle/doric-sandbox.es5.js @@ -1449,6 +1449,9 @@ var doric = (function (exports) { var className = arguments[1]; var srcContext = gContexts.get(srcContextId); if (srcContext) { + srcContext.classes.forEach(function (v, k) { + context === null || context === void 0 ? void 0 : context.classes.set(k, v); + }); var clz = srcContext.classes.get(className); if (clz) { return exportFunc(clz); diff --git a/doric-js/bundle/doric-vm.js b/doric-js/bundle/doric-vm.js index abc52d4f..f4cb0e3d 100644 --- a/doric-js/bundle/doric-vm.js +++ b/doric-js/bundle/doric-vm.js @@ -4811,7 +4811,7 @@ global$1.nativeBridge = () => { console.error("Do not call here in debugging"); return false; }; -global$1.Envrionment = new Proxy({}, { +global$1.Environment = new Proxy({}, { get: (target, p, receiver) => { console.error("Environment Getter", new Error().stack); console.error("Do not call here in debugging"); diff --git a/doric-js/index.debug.ts b/doric-js/index.debug.ts index 33bbe36a..eae17329 100644 --- a/doric-js/index.debug.ts +++ b/doric-js/index.debug.ts @@ -217,7 +217,7 @@ global.nativeBridge = () => { return false; } -global.Envrionment = new Proxy({}, { +global.Environment = new Proxy({}, { get: (target, p, receiver) => { console.error("Environment Getter", new Error().stack); console.error("Do not call here in debugging"); diff --git a/doric-js/lib/index.debug.js b/doric-js/lib/index.debug.js index d054dd81..635d1440 100644 --- a/doric-js/lib/index.debug.js +++ b/doric-js/lib/index.debug.js @@ -221,7 +221,7 @@ global.nativeBridge = () => { console.error("Do not call here in debugging"); return false; }; -global.Envrionment = new Proxy({}, { +global.Environment = new Proxy({}, { get: (target, p, receiver) => { console.error("Environment Getter", new Error().stack); console.error("Do not call here in debugging");