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

Commit dd28e61

Browse files
matthewpguybedford
authored andcommitted
newModule: only use getOwnPropertyNames if obj != null
1 parent ab58d4b commit dd28e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ function logloads(loads) {
725725
var m = new Module();
726726

727727
var pNames;
728-
if (Object.getOwnPropertyNames) {
728+
if (Object.getOwnPropertyNames && obj != null) {
729729
pNames = Object.getOwnPropertyNames(obj);
730730
}
731731
else {

0 commit comments

Comments
 (0)