mirror of https://github.com/tc39/test262.git
Fix toSpliced mutate-while-iterating test
This commit is contained in:
parent
c15d4bef28
commit
ade328d530
|
@ -29,10 +29,14 @@ includes: [compareArray.js]
|
|||
---*/
|
||||
|
||||
var arr = [0, 1, 2, 3];
|
||||
var zerothElementStorage = arr[0];
|
||||
Object.defineProperty(arr, "0", {
|
||||
get() {
|
||||
arr[1] = 42;
|
||||
return 0;
|
||||
return zerothElementStorage;
|
||||
},
|
||||
set(v) {
|
||||
zerothElementStorage = v;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(arr, "2", {
|
||||
|
|
Loading…
Reference in New Issue