mirror of https://github.com/tc39/test262.git
Wrap `toSpliced` call with try-finally
This commit is contained in:
parent
2ad7f321d7
commit
9d8efae5c2
|
@ -41,8 +41,11 @@ function test(otherGlobal) {
|
|||
["toSpliced - array too long", () => {
|
||||
var oldLen = arrayLike.length;
|
||||
arrayLike.length = 2**53 - 1;
|
||||
gToSpliced.call(arrayLike, 0, 0, 1);
|
||||
arrayLike.length = oldLen;
|
||||
try {
|
||||
gToSpliced.call(arrayLike, 0, 0, 1);
|
||||
} finally {
|
||||
arrayLike.length = oldLen;
|
||||
}
|
||||
}]
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue