}
}
} else if (stat instanceof AST_ForIn) {
- stat.object = cons_seq(stat.object);
+ if (!is_lexical_definition(stat.init)) stat.object = cons_seq(stat.object);
} else if (stat instanceof AST_If) {
stat.condition = cons_seq(stat.condition);
} else if (stat instanceof AST_Switch) {
toplevel: true,
}
input: {
- "use strict";
var a = console;
console.log(typeof a, function a() {
let { [console]: a } = 0 && a;
}());
}
expect: {
- "use strict";
var o = console;
console.log(typeof o, function o() {
let { [console]: o } = 0;
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"
+}