Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit d9636ce

Browse files
committed
only create loads when tracing
1 parent 1eb8eaa commit d9636ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/register-loader.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ function RegisterLoader () {
2929

3030
// tracing
3131
this.trace = false;
32-
// trace load objects when tracing
33-
this.loads = {};
3432
}
3533

3634
RegisterLoader.prototype = Object.create(Loader.prototype);
@@ -309,6 +307,7 @@ function resolveInstantiateDep (loader, key, parentKey, registry, registerRegist
309307
}
310308

311309
function traceLoad (loader, load, link) {
310+
loader.loads = loader.loads || {};
312311
loader.loads[load.key] = {
313312
key: load.key,
314313
deps: link.dependencies,

0 commit comments

Comments
 (0)