refactor: rename EngineStartTime
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
7f85295eb1
commit
7e36b6109d
@ -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!'); }
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user