From 6789ab16d8a7507791a918b699cb4a4d2b8653a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herbert=20Voj=C4=8D=C3=ADk?= Date: Fri, 20 Aug 2010 17:15:37 +0200 Subject: [PATCH] Modifying test-global to accomodate v8 inter-context 'global' protection. --- test/fixtures/global/plain.js | 4 +--- test/simple/test-global.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/fixtures/global/plain.js b/test/fixtures/global/plain.js index ae187c29fb..a9d4d9180e 100644 --- a/test/fixtures/global/plain.js +++ b/test/fixtures/global/plain.js @@ -1,6 +1,4 @@ foo = "foo"; global.bar = "bar"; -exports.fooBar = function () { - return {foo: global.foo, bar: bar}; -}; +exports.fooBar = {foo: global.foo, bar:bar}; \ No newline at end of file diff --git a/test/simple/test-global.js b/test/simple/test-global.js index 0e9ec7df23..ce4d3e8df0 100644 --- a/test/simple/test-global.js +++ b/test/simple/test-global.js @@ -9,7 +9,7 @@ assert.equal("foo", global.baseFoo, "x -> global.x in base level not working"); assert.equal("bar", baseBar, "global.x -> x in base level not working"); var module = require("../fixtures/global/plain"), - fooBar = module.fooBar(); + fooBar = module.fooBar; assert.equal("foo", fooBar.foo, "x -> global.x in sub level not working");