Browse Source

Modifying test-global to accomodate v8 inter-context 'global' protection.

v0.7.4-release
Herbert Vojčík 15 years ago
committed by Ryan Dahl
parent
commit
6789ab16d8
  1. 4
      test/fixtures/global/plain.js
  2. 2
      test/simple/test-global.js

4
test/fixtures/global/plain.js

@ -1,6 +1,4 @@
foo = "foo"; foo = "foo";
global.bar = "bar"; global.bar = "bar";
exports.fooBar = function () { exports.fooBar = {foo: global.foo, bar:bar};
return {foo: global.foo, bar: bar};
};

2
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"); assert.equal("bar", baseBar, "global.x -> x in base level not working");
var module = require("../fixtures/global/plain"), 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"); assert.equal("foo", fooBar.foo, "x -> global.x in sub level not working");

Loading…
Cancel
Save