blob: 5935387c29688c2e560940cbad13020378fdc4f9 [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 a let iterator at global scope reflects
// properly in the debugger when the loop is at global
// scope.
// Bug #183991.
var a = {x:2, y:1};
for(let y in a){
y; /**bp:locals(1)**/
}
WScript.Echo('PASSED');