blob: dcde6cd7e30f938e735150009113264fbbcda5ce [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.
//-------------------------------------------------------------------------------------------------------
var GiantPrintArray = [];
function test0()
{
GiantPrintArray.push(3.2);
GiantPrintArray.push(true);
}
test0();
//Profiled as NativeFloatArray
test0();
for(var i =0;i<GiantPrintArray.length;i++){
WScript.Echo(GiantPrintArray[i]);
};
function test1()
{
var ary;
GiantPrintArray.push(2);
GiantPrintArray.push(ary);
}
test1();
//Profiled as NativeIntArray
test1();
for(var i =0;i<GiantPrintArray.length;i++){
WScript.Echo(GiantPrintArray[i]);
};
function test2(a)
{
GiantPrintArray.push(a);
}
var GiantPrintArray = [1.1];
test2(1);
//Profiled as NativeFloatArray
var ary;
test2(ary);
for(var i =0;i<GiantPrintArray.length;i++){
WScript.Echo(GiantPrintArray[i]);
};
function test3()
{
GiantPrintArray = [{}];
GiantPrintArray.push(7);
}
test3();
//Profiled as Var Array
test3();
for(var i =0;i<GiantPrintArray.length;i++){
WScript.Echo(GiantPrintArray[i]);
};