From b105c4375615c82e3931fd57c7bc02f5c692596e Mon Sep 17 00:00:00 2001 From: David Majda Date: Wed, 18 Aug 2010 20:59:03 +0200 Subject: [PATCH] Define |global| object in different way in tests --- test/compiler-test.js | 6 ++---- test/parser-test.js | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) 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);