Skip to content

Commit 602d06a

Browse files
committed
[GR-42807] Add regression test.
1 parent 33cb0e5 commit 602d06a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
3+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
*
5+
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
6+
*/
7+
8+
var s2 = "";
9+
var a0 = [];
10+
var a1 = [];
11+
var a2 = [];
12+
var a3 = [];
13+
var a4 = [];
14+
var o1 = {};
15+
for (let i = 0; i < 5; i++) {
16+
Array.prototype.shift.apply(a1);
17+
a1.splice(NaN, -2044533922.5, a0, s2);
18+
}
19+
for (let i = 0; i < 5; i++) {
20+
Array.prototype.shift.apply(a2);
21+
a2.splice(NaN, -2044533922.5, 3, 4);
22+
}
23+
for (let i = 0; i < 5; i++) {
24+
Array.prototype.shift.apply(a3);
25+
a3.splice(NaN, -2044533922.5, 3.1, 4.15);
26+
}
27+
for (let i = 0; i < 5; i++) {
28+
Array.prototype.shift.apply(a4);
29+
a4.splice(NaN, -2044533922.5, o1, o1);
30+
}

0 commit comments

Comments
 (0)