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

Commit

Permalink
allow null globals
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Apr 11, 2016
1 parent 35d55b5 commit ea936ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compilers/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ GlobalTransformer.prototype.transformScript = function(tree) {
globalExpression = '{';
var first = true;
for (var g in this.globals) {
if (!this.globals[g])
continue;
globalExpression += (first ? '' : ',') + nl + '"' + g + '": $__require("' + this.globals[g] + '")';
first = false;
}
Expand Down

0 comments on commit ea936ba

Please sign in to comment.