refactor: rename EngineStartTime

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
MiaoWoo 2020-09-21 17:09:23 +08:00
parent 7f85295eb1
commit 7e36b6109d
2 changed files with 2 additions and 2 deletions

View File

@ -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!'); }

View File

@ -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 {