Skip to content

Commit 94fd0e0

Browse files
Fix root-less type caching bug
1 parent 1fafc43 commit 94fd0e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/namespace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ Namespace.prototype.lookup = function lookup(path, filterTypes, parentAlreadyChe
408408
return this.root.lookup(path.slice(1), filterTypes);
409409

410410
// Early bailout for objects with matching absolute paths
411-
var found = this.root._fullyQualifiedObjects["." + flatPath];
411+
var found = this.root._fullyQualifiedObjects && this.root._fullyQualifiedObjects["." + flatPath];
412412
if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {
413413
return found;
414414
}

0 commit comments

Comments
 (0)