forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack2.js
More file actions
46 lines (40 loc) · 1.24 KB
/
stack2.js
File metadata and controls
46 lines (40 loc) · 1.24 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
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
var shouldBailout = false;
function test0() {
var obj0 = {};
var arrObj0 = {};
var func0 = function () {
}
var func1 = function (argMath0, argArrObj1, argArr2) {
(function (argArrObj3, argMath4, argMath5) {
b *= (f++);
})(arrObj0, (obj0.length === arrObj0.prop0), (1 ? obj0.prop1 : this.prop0));
if (shouldBailout) {
return 'somestring'
}
}
var func2 = function () {
func1(1, 1, 1);
(1 ? func0() : (1 ? (shouldBailout ? func0() : func0()) : (ary.pop())));
}
obj0.method0 = func2;
var ary = new Array(10);
var b = 1;
var f = 1;
if (shouldBailout) {
func0 = obj0.method0;
}
func0();
};
test0();
// run code with bailouts enabled
shouldBailout = true;
try {
test0();
}
catch(ex) {
WScript.Echo(ex.message);
}