[Pkg-javascript-commits] [uglifyjs] 324/491: avoid `Function.prototype` pollution by `test/sandbox.js` (#2581)
Jonas Smedegaard
dr at jones.dk
Wed Feb 14 19:51:49 UTC 2018
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.
commit ddf96cfda2a3e27b977e0ed8cca3896073513186
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date: Tue Dec 12 05:02:01 2017 +0800
avoid `Function.prototype` pollution by `test/sandbox.js` (#2581)
---
test/sandbox.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/sandbox.js b/test/sandbox.js
index fe2e588..2ce9f6e 100644
--- 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 = "";
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list