forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmissingItemFastPathCheck.js
More file actions
86 lines (64 loc) · 2.14 KB
/
missingItemFastPathCheck.js
File metadata and controls
86 lines (64 loc) · 2.14 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
//Bug : 512851
var GiantPrintArray = [];
var func1 = function(){
GiantPrintArray.push(g);
}
var g = 1;
func1();
g = ((- (-2 - 2147483648)) << 0);
func1();
WScript.Echo(GiantPrintArray);
////////////////////////////////////////////////////////////////////////////////////// Test0//////////////////////////////////////////////////////////////////
//Bug: 543466
//-maxinterpretcount:1 -bgjit-
var eqObj5;
var IntArr0 = new Array();
eqObj5 = -2147483647;
IntArr0[4] = 1;
test0();
++eqObj5;
test0();
function test0() {
IntArr0.push(eqObj5);
return IntArr0[IntArr0.length];
}
WScript.Echo("PASSED test0");
////////////////////////////////////////////////////////////////////////////////////// Test1//////////////////////////////////////////////////////////////////
//Bug: 537537
var GiantPrintArray = [];
function test1(){
var v386361 = -2147483646;
{
const v386361 = 1;
GiantPrintArray.push(v386361);
}
GiantPrintArray.push(v386361);
};
test1();
test1();
WScript.Echo("PASSED test1");
////////////////////////////////////////////////////////////////////////////////////// Test2//////////////////////////////////////////////////////////////////
function test2(arg1) {
WScript.Echo(arg1.push(-2147483646));
}
var arr3 = new Array(1);
test2(arr3);
test2(arr3);
////////////////////////////////////////////////////////////////////////////////////// Test3 //////////////////////////////////////////////////////////////////
//Bug: 576717
var GiantPrintArray = [];
var missingItemFunc = function () {
function v2629() {
}
GiantPrintArray.push(-2147483646);
v2629();
};
for (i=0;i<1;i++) {
missingItemFunc();
missingItemFunc();
}
WScript.Echo("PASSED Test3");