forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharray_fastinit.js
More file actions
20 lines (19 loc) · 795 Bytes
/
array_fastinit.js
File metadata and controls
20 lines (19 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
function InitPolymorphicFunctionArray(args) {
}
function test0() {
var IntArr2 = new Array();
IntArr2[5] = 4294967295;
IntArr2[0] = 2.53425738368173E+18;
IntArr2[IntArr2.length] = 3;
function bar0() {
}
InitPolymorphicFunctionArray(new Array(bar0));;
WScript.Echo(IntArr2.slice(0, 23).reduce(function (prev, curr) { { return prev + curr; } }));
};
test0();
test0();
test0();