blob: e9ab115630598183af28e48b64751cefc36ad7a1 [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 let/const variables appear properly as part of a for loop.
function blockScopeForTestFunc() {
; /**bp:locals()**/
for (let i = 0; i < 1; ++i)
{
const innerConst = 2;
i; /**bp:locals()**/
}
return 0; /**bp:locals()**/
}
blockScopeForTestFunc();
WScript.Echo("PASSED");