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