diff --git a/src/main/resources/core/ployfill.js b/src/main/resources/core/ployfill.js index 8eaf2f0..72700cc 100644 --- a/src/main/resources/core/ployfill.js +++ b/src/main/resources/core/ployfill.js @@ -7,7 +7,7 @@ // Init Global Value global.root = root; global.logger = logger; - global.NashornEngineStartTime = new Date().getTime() + global.ScriptEngineStartTime = new Date().getTime() global.engineLoad = load; global.noop = global.engineDisable = engineDisable = function () { }; global.load = load = function __PreventGlobalLoadFunction__() { throw new Error('Internal engine system not allow use `load` function!'); } diff --git a/src/main/resources/core/require.js b/src/main/resources/core/require.js index ae0c035..a2e6cf2 100644 --- a/src/main/resources/core/require.js +++ b/src/main/resources/core/require.js @@ -129,7 +129,7 @@ if (cacheModuleIds[name]) return cacheModuleIds[name] // 解析本地目录 if (name.startsWith('./') || name.startsWith('../')) { - var moduleId = parent + '||' + name + var moduleId = parent + '/' + name if (cacheModuleIds[moduleId]) return cacheModuleIds[moduleId] return cacheModuleIds[moduleId] = resolveAsFile(name, parent) || resolveAsDirectory(name, parent) || undefined; } else {