-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathbug_12044876.js
38 lines (35 loc) · 1.22 KB
/
bug_12044876.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
//switches: -forcearraybtree
// x86debug: lib\runtime\Library/JavascriptArray.inl, current->left >= lastindex
function test0() {
var arr = [4294967296];
arr[9] = 19;
arr.unshift(1, 2, {}, 4, 5, 6, 7, 8, 9, 10, 11, 12);
}
// x64debug: lib\Runtime\Library\SparseArraySegment.cpp, length <= size
function test1() {
function makeArrayLength() {
return 100;
}
var obj0 = {};
var protoObj0 = {};
var obj1 = {};
var arrObj0 = {};
var func0 = function () {
};
var func1 = function () {
};
obj0.method1 = func0;
var ary = Array();
var IntArr1 = new Array();
IntArr1[15] = ~obj1.prop0;
arrObj0.length = makeArrayLength();
IntArr1[10] = arrObj0.length;
makeArrayLength(IntArr1.unshift(func1(), ary, obj0.method1(), protoObj0, Object(), arrObj0, -1877547837));
}
test0();
test1();
console.log("Pass");