-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathstackTrace.js
47 lines (41 loc) · 1007 Bytes
/
stackTrace.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
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
if (this.WScript && this.WScript.LoadScriptFile) {
this.WScript.LoadScriptFile("../UnitTestFramework/TrimStackTracePath.js");
}
function Dump(output)
{
if (this.WScript)
{
WScript.Echo(output);
}
else
{
alert(output);
}
}
function test0() {
var obj0 = {};
var func4 = function () {
var a = ui8;
func0();
};
var func0 = function() {
for (; prop0 < 100; ) {
argMath5;
}
}
obj0.method1 = func4;
var ui8 = new Uint8Array(256);
prop0 = Infinity;
obj0.method1();
prop0 = -1766989739;
obj0.method1();
}
try {
test0();
} catch(e) {
Dump(TrimStackTracePath(e.stack));
}