blob: d3c5dc0bd39da50616bd6d12802a89774cde8957 [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// 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("TrimStackTracePath.js");
}
function foo(a)
{
try{
baz();
}catch(ex){
WScript.Echo(TrimStackTracePath(ex.stack));
}
try{
baz();
}catch(ex){
WScript.Echo(TrimStackTracePath(ex.stack));
}
}
foo(1);
foo(1);
foo(1.1);