-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathFuncBody.bug227901.js
51 lines (46 loc) · 1.24 KB
/
FuncBody.bug227901.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
39
40
41
42
43
44
45
46
47
48
49
50
51
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
function test0(){
var obj0 = {};
var arrObj0 = {};
var func0 = function(){
eval(" ");
}
var func1 = function(){
var obj4 = {nd0: {nd0: {lf0: {prop0: -46, prop1: 3, prop2: -2147483648, length: -6.02625054824609E+18 , method0: func0}}}};
d ^=obj4.nd0.nd0.lf0.method0();
obj4.nd0.nd0.lf0 = 1;
this.prop1 |=obj4.nd0.nd0.lf0.method0.call(obj0 );
}
Object.prototype.method0 = func1;
var d = 1;
arrObj0.method0();
};
var testOutcome = false;
try
{
// generate profile
test0();
test0();
test0();
// run JITted code
runningJITtedCode = true;
test0();
test0();
test0();
}
catch(e)
{
WScript.Echo("Caught expected exception. Type of exception: " + e);
if (e == "Error: Out of stack space") {
testOutcome = true;
}
}
if (testOutcome) {
WScript.Echo("Passed");
}
else {
WScript.Echo("Failed");
}