//------------------------------------------------------------------------------------------------------- | |
// Copyright (C) Microsoft. All rights reserved. | |
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | |
//------------------------------------------------------------------------------------------------------- | |
WScript.LoadScriptFile("../UnitTestFramework/known_globals.js"); | |
let x; | |
WScript.Echo(x); | |
{ | |
let x = 5; | |
WScript.Echo(x); | |
} | |
WScript.Echo(x); | |
for (var a in this) { | |
if (isKnownGlobal(a)) | |
continue; | |
WScript.Echo(a); | |
} | |
WScript.Echo(); | |
function f() { | |
const x = 'a'; | |
WScript.Echo(x); | |
if (1 > 0) | |
{ | |
let x; | |
WScript.Echo(x); | |
} | |
WScript.Echo(x); | |
WScript.Echo(f); | |
}f(); | |
WScript.Echo(x); |