public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b334ed
)
add test for #2613 (#2618)
author
Alex Lam S.L
<alexlamsl@gmail.com>
Mon, 18 Dec 2017 21:22:05 +0000
(
05:22
+0800)
committer
GitHub
<noreply@github.com>
Mon, 18 Dec 2017 21:22:05 +0000
(
05:22
+0800)
test/compress/functions.js
patch
|
blob
|
history
diff --git
a/test/compress/functions.js
b/test/compress/functions.js
index
c8b7ed6
..
41dfc6a
100644
(file)
--- a/
test/compress/functions.js
+++ b/
test/compress/functions.js
@@
-1050,6
+1050,24
@@
unsafe_call_2: {
expect_stdout: true
}
+unsafe_call_3: {
+ options = {
+ side_effects: true,
+ unsafe: true,
+ }
+ input: {
+ console.log(function() {
+ return arguments[0] + eval("arguments")[1];
+ }.call(0, 1, 2));
+ }
+ expect: {
+ console.log(function() {
+ return arguments[0] + eval("arguments")[1];
+ }(1, 2));
+ }
+ expect_stdout: "3"
+}
+
issue_2616: {
options = {
evaluate: true,