msaboff@apple.com | 6ce5b2c | 2016-09-03 00:12:16 +0000 | [diff] [blame] | 1 | //------------------------------------------------------------------------------------------------------- |
| 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 | |
| 6 | if (this.WScript && this.WScript.LoadScriptFile) { |
| 7 | this.WScript.LoadScriptFile("TrimStackTracePath.js"); |
| 8 | } |
| 9 | |
| 10 | function 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 | } |
| 27 | bar(1); |