aboutsummaryrefslogtreecommitdiff
path: root/test/compress/functions.js
diff options
m.submit();'>
context:
2019-08-14remote: Remove '--system' argument....* gnu/services.scm (activation-script): Return a <program-file> rather than a <scheme-file>. * gnu/deploy.scm (guix-deploy): Remove handling for '--system'. (show-help): Remove documentation for '--system'. (%default-options): Remove default setting for 'system'. Jakob L. Kreuze
mode:
Diffstat (limited to 'test/compress/functions.js')
-rw-r--r--test/compress/functions.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js
index 5c8533de..0607e85c 100644
--- a/test/compress/functions.js
+++ b/test/compress/functions.js
@@ -3340,3 +3340,33 @@ issue_3506_3: {
}
expect_stdout: "PASS"
}
+
+issue_3512: {
+ options = {
+ collapse_vars: true,
+ pure_getters: "strict",
+ sequences: true,
+ side_effects: true,
+ unused: true,
+ }
+ input: {
+ var a = "PASS";
+ (function(b) {
+ (function() {
+ b <<= this || 1;
+ b.a = "FAIL";
+ })();
+ })();
+ console.log(a);
+ }
+ expect: {
+ var a = "PASS";
+ (function(b) {
+ (function() {
+ (b <<= this || 1).a = "FAIL";
+ })();
+ })(),
+ console.log(a);
+ }
+ expect_stdout: "PASS"
+}