[Pkg-javascript-commits] [uglifyjs] 348/491: add test for #2613 (#2618)

Jonas Smedegaard dr at jones.dk
Wed Feb 14 19:51:51 UTC 2018


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.

commit 032f096b7f39d12c303e4d0c096619ad3c9f9384
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date:   Tue Dec 19 05:22:05 2017 +0800

    add test for #2613 (#2618)
---
 test/compress/functions.js | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/test/compress/functions.js b/test/compress/functions.js
index c8b7ed6..41dfc6a 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,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list