| //------------------------------------------------------------------------------------------------------- | |
| // 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 display properly when leaving a dead zone in the register slot case. | |
| function blockScopeRegSlotDeadZoneTest() { | |
| var a = 0; /**bp:locals()**/ | |
| let b = 1; /**bp:locals()**/ | |
| const c = 2; /**bp:locals()**/ | |
| a; /**bp:locals()**/ | |
| } | |
| blockScopeRegSlotDeadZoneTest(); | |
| WScript.Echo("PASSED"); |