blob: cf6fcaccaf360d41bcdc739e4667f722a7378b83 [file]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
function foo() {
var a = [1, 0, 0, 0, 1, 1, 1, 1, 0, 0];
var i;
for (var k = 0; k < 10; k++) {
switch (a[k]) {
case 1:
break;
case 2:
{
if (i) {
function bar() {
i;
}
}
}
}
}
}
foo();
WScript.Echo('pass');