From: Alex Lam S.L Date: Sat, 17 Feb 2018 18:13:26 +0000 (+0800) Subject: reduce false positives from `function.toString()` (#2928) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4a528c469c8b962912c8628fb312e772dd77fe2f;p=UglifyJS.git reduce false positives from `function.toString()` (#2928) --- diff --git a/test/sandbox.js b/test/sandbox.js index 80cbc3bf..c477a8a2 100644 --- a/test/sandbox.js +++ b/test/sandbox.js @@ -39,7 +39,11 @@ var FUNC_TOSTRING = [ " });", ] : [], [ " }", - ' return "function " + n + "() {...}";', + ' return "function " + n + "() {' + function() { + var s = "\7"; + for (var i = 10; --i >= 0;) s += s; + return s; + }() + '}";', " }", "}();", ]).join("\n");