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

Commit

Permalink
newModule: only use getOwnPropertyNames if obj != null
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and guybedford committed Apr 28, 2015
1 parent 8eb0d55 commit 0210452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ function logloads(loads) {
var m = new Module();

var pNames;
if (Object.getOwnPropertyNames) {
if (Object.getOwnPropertyNames && obj != null) {
pNames = Object.getOwnPropertyNames(obj);
}
else {
Expand Down

0 comments on commit 0210452

Please sign in to comment.