blob: c1e0fff31e6e6f755cf6cab2c7250c29a6738572 [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.
//-------------------------------------------------------------------------------------------------------
// -maxInterpretCount:1 -off:SimpleJit
function f(x)
{
if (x < 0) {
throw Error("abc");
} else {
f(x-1);
}
}
try
{
f(1);
} catch (ex)
{
var stackAfterTrimDirectoryName = ex.stack.replace(/\(.*\\/g, "(");
WScript.Echo(stackAfterTrimDirectoryName);
}