blob: ddd9a12f1ec9b715895265f4c89da1bd86274434 [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// 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');