blob: 7bd3fb0df87eb4d801779bdfefbfb151ca602a76 [file]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
// Tests that function declaration bindings show correctly for the
// global function case where shadowing occurs from above
// (with no var binding created).
// Bug 305562.
(function ()
{
for (var i = 0; i < 2; i += 1)
{
try
{
(function ()
{
"use strict";
if (i == 0)
f(); /**bp:evaluate('f')**/
if (true)
{
function f() { }
f(); /**bp:evaluate('f')**/
}
f(); /**bp:evaluate('f')**/
})();
}
catch (e)
{
e; /**bp:evaluate('e')**/
}
}
})();
WScript.Echo("PASSED");