blob: eb54ae74864011719a7106be7ab8be0e311c92a8 [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.
//-------------------------------------------------------------------------------------------------------
var a = 3;
function test()
{
// Bail out point to make sure the stack walker can get the line number of the throw after bailout
for (var i = 0; i < a; i++)
{
WScript.Echo(i);
}
throw 1;
}
(function () {
try {
test();
}
catch (e) {
print(e === 1);
}
})();