avoid Function.prototype pollution by test/sandbox.js (#2581)
This commit is contained in:
@@ -37,6 +37,7 @@ var FUNC_TOSTRING = [
|
||||
' return "[Function: " + i + "]";',
|
||||
" }",
|
||||
"}();",
|
||||
'Object.defineProperty(Function.prototype, "valueOf", { enumerable: false });',
|
||||
]).join("\n");
|
||||
exports.run_code = function(code) {
|
||||
var stdout = "";
|
||||
|
||||
Reference in New Issue
Block a user