enhance side_effects (#5304)

This commit is contained in:
Alex Lam S.L
2022-01-17 15:18:42 +00:00
committed by GitHub
parent b636e97e3b
commit 8c2b76eff9
2 changed files with 63 additions and 18 deletions

View File

@@ -241,7 +241,29 @@ drop_empty_call_2: {
node_version: ">=6"
}
convert_hole: {
convert_hole_array: {
options = {
spreads: true,
}
input: {
[ ...[ "PASS", , 42 ] ].forEach(function(a) {
console.log(a);
});
}
expect: {
[ "PASS", void 0, 42 ].forEach(function(a) {
console.log(a);
});
}
expect_stdout: [
"PASS",
"undefined",
"42",
]
node_version: ">=6"
}
convert_hole_call: {
options = {
spreads: true,
}