mirror of https://github.com/nodejs/node.git
test: disable global variable check for "test-repl-options.js"
Previously, the "global" mode of REPLs was broken when created after another
non-global REPL (they would end up sharing the same context). Now that "global"
mode is fixed for that case (b1e78cef09
), this
test case gets its global scope modified with "module" and other REPL-specific
properties, so disable the global check.
v0.8.16-release
parent
1205734e69
commit
cca15e8e33
|
@ -24,6 +24,8 @@ var common = require('../common'),
|
||||||
Stream = require('stream'),
|
Stream = require('stream'),
|
||||||
repl = require('repl');
|
repl = require('repl');
|
||||||
|
|
||||||
|
common.globalCheck = false;
|
||||||
|
|
||||||
// create a dummy stream that does nothing
|
// create a dummy stream that does nothing
|
||||||
var stream = new Stream();
|
var stream = new Stream();
|
||||||
stream.write = stream.pause = stream.resume = function(){};
|
stream.write = stream.pause = stream.resume = function(){};
|
||||||
|
|
Loading…
Reference in New Issue