forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbox_blockscope.js
More file actions
30 lines (29 loc) · 912 Bytes
/
box_blockscope.js
File metadata and controls
30 lines (29 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
function foo1() {
var ary = Array();
var foo1Var = 1;
function foo2() {
var foo2Var = 0;
var err = Error();
try {
throw err;
} catch (ex) { }
while (true) {
function foo4() {
foo5();
}
foo1Var = ary;
function foo5() {
ary[foo2Var] = foo1Var;
}
foo5(ary);
break;
}
}
foo2();
WScript.Echo(typeof ary[0]);
};
foo1();