aboutsummaryrefslogtreecommitdiff
path: root/test/compress/let.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/let.js')
-rw-r--r--test/compress/let.js22
1 files changed, 20 insertions, 2 deletions
diff --git a/test/compress/let.js b/test/compress/let.js
index 7a9db169..b5005ebf 100644
--- a/test/compress/let.js
+++ b/test/compress/let.js
@@ -1319,7 +1319,6 @@ issue_4531_2: {
toplevel: true,
}
input: {
- "use strict";
var a = console;
console.log(typeof a, function a() {
let { [console]: a } = 0 && a;
@@ -1328,7 +1327,6 @@ issue_4531_2: {
}());
}
expect: {
- "use strict";
var o = console;
console.log(typeof o, function o() {
let { [console]: o } = 0;
@@ -1339,3 +1337,23 @@ issue_4531_2: {
expect_stdout: "object undefined"
node_version: ">=6"
}
+
+issue_4689: {
+ options = {
+ sequences: true,
+ }
+ input: {
+ "use strict";
+ var a = "PASS";
+ console.log(a);
+ for (let a in 42);
+ }
+ expect: {
+ "use strict";
+ var a = "PASS";
+ console.log(a);
+ for (let a in 42);
+ }
+ expect_stdout: "PASS"
+ node_version: ">=4"
+}