public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebfd5c5
)
avoid `Function.prototype` pollution by `test/sandbox.js` (#2581)
author
Alex Lam S.L
<alexlamsl@gmail.com>
Mon, 11 Dec 2017 21:02:01 +0000
(
05:02
+0800)
committer
GitHub
<noreply@github.com>
Mon, 11 Dec 2017 21:02:01 +0000
(
05:02
+0800)
test/sandbox.js
patch
|
blob
|
history
diff --git
a/test/sandbox.js
b/test/sandbox.js
index
fe2e588
..
2ce9f6e
100644
(file)
--- a/
test/sandbox.js
+++ b/
test/sandbox.js
@@
-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 = "";