Skip to content

Commit

Permalink
add test for #2613 (#2618)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlamsl committed Dec 18, 2017
1 parent 4b334ed commit 032f096
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/compress/functions.js
Expand Up @@ -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,
Expand Down

0 comments on commit 032f096

Please sign in to comment.