mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
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;
|
||||
try {
|
||||
gToSpliced.call(arrayLike, 0, 0, 1);
|
||||
} finally {
|
||||
arrayLike.length = oldLen;
|
||||
}
|
||||
}]
|
||||
]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user