public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82d1ef0
)
reduce false positives from `function.toString()` (#2928)
author
Alex Lam S.L
<alexlamsl@gmail.com>
Sat, 17 Feb 2018 18:13:26 +0000
(
02:13
+0800)
committer
GitHub
<noreply@github.com>
Sat, 17 Feb 2018 18:13:26 +0000
(
02:13
+0800)
test/sandbox.js
patch
|
blob
|
history
diff --git
a/test/sandbox.js
b/test/sandbox.js
index
80cbc3b
..
c477a8a
100644
(file)
--- 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");