introduce spread (#4346)

fixes #4345
This commit is contained in:
Alex Lam S.L
2020-12-07 22:51:20 +00:00
committed by GitHub
parent 336336f53f
commit c587d7917d
4 changed files with 95 additions and 48 deletions

View File

@@ -45,8 +45,8 @@ duplicate_key_strict: {
"use strict";
var o = {
a: 1,
b: 2,
a: 3,
b: 2,
};
for (var k in o)
console.log(k, o[k]);
@@ -323,8 +323,8 @@ issue_4269_3: {
}
expect: {
console.log({
["foo"]: "bar",
get 42() {
foo: "bar",
get [42]() {
return "FAIL";
},
42: "PASS",
@@ -353,8 +353,8 @@ issue_4269_4: {
get 42() {
return "FAIL";
},
["foo"]: "bar",
42: "PASS",
foo: "bar",
[42]: "PASS",
}[42]);
}
expect_stdout: "PASS"