blob: 073362cd379ea55bf4bf2f9a573cc1855bee76d4 [file]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
Object.prototype[5] = "obj.proto5";
Object.prototype[7] = "obj.proto7";
Array.prototype[1] = "arr.proto.1";
Array.prototype[2] = "arr.proto.2";
Array.prototype[3] = "arr.proto.3";
Array.prototype[6] = "arr.proto.6";
var n=8;
var arr = new Array(4);
arr[1] = null;
arr[2] = undefined;
function test() {
var x;
switch (x) {
default:
[1, , ];
}
};
function ArrayLiteralMissingValue()
{
return [1, 1, -2147483646];
}
var arr1 = ArrayLiteralMissingValue();
function ArrayConstructorMissingValue()
{
return new Array(-1, -2147483646);
}
var IntArr0 = ArrayConstructorMissingValue();
WScript.SetTimeout(testFunction, 50);
/////////////////
function testFunction()
{
for (var i=0;i<n;i++) {
telemetryLog(`arr[${i}] : ${arr[i]}`, true);
}
test();
test();
telemetryLog(`[] missing value:${arr1[2]}`, true);
telemetryLog(`Array() missing value:${IntArr0[1]}`, true);
emitTTDLog(ttdLogURI);
}