forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJsDiagEvaluate.js
More file actions
36 lines (32 loc) · 941 Bytes
/
JsDiagEvaluate.js
File metadata and controls
36 lines (32 loc) · 941 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.
//-------------------------------------------------------------------------------------------------------
globalVar = {
a : "Hello World",
b : /regex/ig
};
function foo() {
var localVar = {
a : {
b : 1
}
};
var x = 1; /**bp:evaluate('localVar', 2);evaluate('globalVar', 1);**/
}
foo();
var x = NaN;
function Level1Func() {
var x = null;
Level2Func();
}
function Level2Func() {
var x = -Infinity;
Level3Func();
}
function Level3Func() {
var x = Math.PI;
var y = 4; /**bp:evaluate('x');setFrame(1);evaluate('x');setFrame(2);evaluate('x');setFrame(3);evaluate('x');**/
}
Level1Func();
WScript.Echo("pass");