diff options
Diffstat (limited to 'test/sandbox.js')
-rw-r--r-- | test/sandbox.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/sandbox.js b/test/sandbox.js index ca1781c6..cb1e18c9 100644 --- a/test/sandbox.js +++ b/test/sandbox.js @@ -52,7 +52,10 @@ exports.run_code = function(code) { "}();", ].join("\n"), { console: { - log: function() { + log: function(msg) { + if (arguments.length == 1 && typeof msg == "string") { + return console.log("%s", msg); + } return console.log.apply(console, [].map.call(arguments, function(arg) { return safe_log(arg, 3); })); |