aboutsummaryrefslogtreecommitdiff
path: 2015-12-02daemon: Fix namespace issue.Eelco Dolstra 2015-12-02daemon: Support SHA-512 hashes....Eelco Dolstra 2015-12-02daemon: int2String -> std::to_string.Eelco Dolstra ='get'>
context:
space:
mode:
Diffstat (limited to 'test/compress/dead-code.js')
-rw-r--r--test/compress/dead-code.js36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/compress/dead-code.js b/test/compress/dead-code.js
index ecf5ce4b..389d43f8 100644
--- a/test/compress/dead-code.js
+++ b/test/compress/dead-code.js
@@ -1633,3 +1633,39 @@ issue_5030: {
expect_stdout: "PASS"
node_version: ">=0.12"
}
+
+issue_5106_1: {
+ options = {
+ dead_code: true,
+ }
+ input: {
+ console.log(typeof function(a) {
+ return a = arguments;
+ }("FAIL")[0]);
+ }
+ expect: {
+ console.log(typeof function(a) {
+ return a = arguments;
+ }("FAIL")[0]);
+ }
+ expect_stdout: "object"
+}
+
+issue_5106_2: {
+ options = {
+ dead_code: true,
+ }
+ input: {
+ "use strict";
+ console.log(function(a) {
+ return a = arguments;
+ }("PASS")[0]);
+ }
+ expect: {
+ "use strict";
+ console.log(function(a) {
+ return arguments;
+ }("PASS")[0]);
+ }
+ expect_stdout: "PASS"
+}