diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-12-19 05:22:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-19 05:22:05 +0800 |
commit | 032f096b7f39d12c303e4d0c096619ad3c9f9384 (patch) | |
tree | cad94cea7b4276e51f3a432f412a7d00bb02e4d6 /test | |
parent | 4b334edf491bd4c43a72e1a08ad2cf360f240515 (diff) | |
download | tracifyjs-032f096b7f39d12c303e4d0c096619ad3c9f9384.tar.gz tracifyjs-032f096b7f39d12c303e4d0c096619ad3c9f9384.zip |
add test for #2613 (#2618)
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/functions.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js index c8b7ed6f..41dfc6a9 100644 --- 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, |