blob: 1e79f95df2162ff20fbedd5bb62ee990259a6fc7 [file] [log] [blame]
msaboff@apple.com6ce5b2c2016-09-03 00:12:16 +00001//-------------------------------------------------------------------------------------------------------
2// Copyright (C) Microsoft. All rights reserved.
3// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4//-------------------------------------------------------------------------------------------------------
5
6if (this.WScript && this.WScript.LoadScriptFile) {
7 this.WScript.LoadScriptFile("TrimStackTracePath.js");
8}
9
10function bar(a)
11{
12 for(var i = 0; i<4; i++)
13 {
14 for(var j = 0; j<4; j++)
15 {
16 try
17 {
18 baz();
19 }
20 catch(ex)
21 {
22 WScript.Echo(TrimStackTracePath(ex.stack));
23 }
24 }
25 }
26}
27bar(1);