mirror of https://github.com/nodejs/node.git
Modifying test-global to accomodate v8 inter-context 'global' protection.
parent
2a03d5802b
commit
6789ab16d8
|
@ -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};
|
|
||||||
};
|
|
|
@ -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…
Reference in New Issue