blob: 61909d5bbe841e1e9afe8cd5fad8ea13269fa71f [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.
//-------------------------------------------------------------------------------------------------------
// WinBlue 194710: wrong line/col number in exception from inside for in.
function foo()
{
for (var p in c) // Error: c is undefined.
{
addPropertyName(p);
}
}
try
{
foo();
}
catch (ex)
{
var truncatedPathStack = ex.stack.replace(/\(.*\\/g, "(");
WScript.Echo(truncatedPathStack);
}