diff options
Diffstat (limited to 'utils/lib/test/runner.js')
-rwxr-xr-x | utils/lib/test/runner.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/lib/test/runner.js b/utils/lib/test/runner.js index cbfce2e..1bdb43c 100755 --- a/utils/lib/test/runner.js +++ b/utils/lib/test/runner.js @@ -30,10 +30,12 @@ exports.run = function(objectOrModule, context) { try { objectOrModule[property](); } finally { - for (var name in system.global) { - if (!globals[name]) { - delete system.global[name]; - throw new assert.AssertionError("New global introduced: " + util.enquote(name)); + if (!objectOrModule.isMonkey) { + for (var name in system.global) { + if (!globals[name]) { + delete system.global[name]; + throw new assert.AssertionError("New global introduced: " + util.enquote(name)); + } } } } |