diff --git a/test/compiler-test.js b/test/compiler-test.js index 09cffc2..dbf92ad 100644 --- a/test/compiler-test.js +++ b/test/compiler-test.js @@ -1,6 +1,4 @@ -(function() { - -var global = this; +(function(global) { /* ===== Helpers ===== */ @@ -634,4 +632,4 @@ test("nested comments", function() { ); }); -})(); +})(this); diff --git a/test/parser-test.js b/test/parser-test.js index b17ad57..a68b25e 100644 --- a/test/parser-test.js +++ b/test/parser-test.js @@ -1,6 +1,4 @@ -(function() { - -var global = this; +(function(global) { /* ===== Helpers ===== */ @@ -610,4 +608,4 @@ test("parses whitespace", function() { grammarParserParses('start =\u3000"abcd"', simpleGrammar); }); -})(); +})(this);