forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path622043.js
More file actions
36 lines (28 loc) · 921 Bytes
/
622043.js
File metadata and controls
36 lines (28 loc) · 921 Bytes
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
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
var runningJITtedCode = false;
function test0() {
var func0 = function () {
var v3877 = runningJITtedCode;
function v3878() {
function v3879() {
return v3879;
}
if (v3877)
return v3879();
}
var v3880 = v3878();
}
var func2 = function () {
func0();
}
func0.call(func2.call());
};
// generate profile
test0();
// run JITted code
runningJITtedCode = true;
test0();
WScript.Echo('pass');