if (len != b.length) return -2;
for (var i = 0; i < len; i++) {
if (!a[i].equivalent_to(b[i])) {
+ if (a[i] instanceof AST_Spread !== b[i] instanceof AST_Spread) return -3;
for (var j = i + 1; j < len; j++) {
if (!a[j].equivalent_to(b[j])) return -2;
}
node_version: ">=6"
}
-conditionals_farg: {
+conditionals_farg_1: {
options = {
conditionals: true,
}
node_version: ">=6"
}
+conditionals_farg_2: {
+ options = {
+ conditionals: true,
+ pure_getters: "strict",
+ reduce_vars: true,
+ }
+ input: {
+ var log = console.log;
+ (function(a) {
+ return a.length ? log(...a) : log("FAIL");
+ })([ "PASS" ]);
+ }
+ expect: {
+ var log = console.log;
+ (function(a) {
+ return a.length ? log(...a) : log("FAIL");
+ })([ "PASS" ]);
+ }
+ expect_stdout: "PASS"
+ node_version: ">=6"
+}
+
dont_inline: {
options = {
inline: true,