diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-07-13 16:40:54 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-07-15 10:34:39 -0700 |
commit | 5f30377bbcf97ea68f9f26aec7078581129e0f76 (patch) | |
tree | 16d494bcb500caefe388ed0c6093de1cbedc35b5 /test/common.js | |
parent | 4e50197e5330b7f1f603981f6dc817cac7f9a4f9 (diff) | |
download | android-node-v8-5f30377bbcf97ea68f9f26aec7078581129e0f76.tar.gz android-node-v8-5f30377bbcf97ea68f9f26aec7078581129e0f76.tar.bz2 android-node-v8-5f30377bbcf97ea68f9f26aec7078581129e0f76.zip |
Load modules in individual contexts
Add NODE_MODULE_CONTEXTS env var
Only one test was modified to check that this works. NEED to go through all
tests and modify them so that
NODE_MODULE_CONTEXTS=1 make test
passes.
Diffstat (limited to 'test/common.js')
-rw-r--r-- | test/common.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/common.js b/test/common.js index 0f8c1be52e..9593afdce3 100644 --- a/test/common.js +++ b/test/common.js @@ -7,6 +7,8 @@ exports.fixturesDir = path.join(exports.testDir, "fixtures"); exports.libDir = path.join(exports.testDir, "../lib"); exports.PORT = 12346; +exports.assert = require('assert'); + var sys = require("sys"); for (var i in sys) exports[i] = sys[i]; -exports.assert = require('assert'); +for (var i in exports) global[i] = exports[i]; |