forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcachescope.js
More file actions
42 lines (33 loc) · 1.17 KB
/
cachescope.js
File metadata and controls
42 lines (33 loc) · 1.17 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
function test0(){
var obj0 = {};
var obj1 = {};
var obj2 = {};
var func2 = function(argFunc1,argFunc2){
// Iterate through an array of arrays.
function _array2iterate(_array2tmp) {
for(var _array2i in _array2tmp) {
if(_array2i.indexOf("method") == 0)
continue;
//Code Snippet: NegativeArgumentBug.ecs (Blue15423)
for (var _i in arguments[1]) {
};
if(_array2tmp[_array2i] instanceof Array) {
_array2iterate(_array2tmp[_array2i]);
}
else {
obj2.prop5 += _array2tmp[_array2i];
}
}
}
_array2iterate([ [1], [1], [1, 1, [1, 1, 1, [obj1.prop6, 1, [obj0.prop1]]]]]);
1 }
obj1.method0 = func2;
obj1.method0(1, 1);
};
// generate profile
test0();
test0();