Skip to content

Commit

Permalink
support null globals
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jan 29, 2016
1 parent 86be5c4 commit 5164adb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ hook('instantiate', function(instantiate) {

entry.deps = [];

for (var g in load.metadata.globals)
entry.deps.push(load.metadata.globals[g]);
for (var g in load.metadata.globals) {
var gl = load.metadata.globals[g];
if (gl)
entry.deps.push(gl);
}

entry.execute = function(require, exports, module) {

Expand Down

0 comments on commit 5164adb

Please sign in to comment.