mirror of https://gitee.com/bigwinds/arangodb
Consistency
This commit is contained in:
parent
ca9a25951b
commit
70ad91c122
|
@ -453,7 +453,7 @@ Module._load = function(request, parent, isMain) {
|
||||||
}
|
}
|
||||||
|
|
||||||
cache[filename] = module;
|
cache[filename] = module;
|
||||||
var x = { cache, filename };
|
var loading = {cache, filename};
|
||||||
LOADING.push(x);
|
LOADING.push(x);
|
||||||
|
|
||||||
var hadException = true;
|
var hadException = true;
|
||||||
|
@ -470,7 +470,7 @@ Module._load = function(request, parent, isMain) {
|
||||||
delete cache[filename];
|
delete cache[filename];
|
||||||
}
|
}
|
||||||
|
|
||||||
var i = LOADING.indexOf(x);
|
var i = LOADING.indexOf(loading);
|
||||||
if (i !== -1) {
|
if (i !== -1) {
|
||||||
LOADING.splice(i, 1);
|
LOADING.splice(i, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue