blob: 12c9f0c0dafbb167bc4d74b6cad3cc42596f89d8 [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.
//-------------------------------------------------------------------------------------------------------
Array.prototype[1] = 100;
function f(param)
{
var a = new Array(1, param, 3);
return a;
}
WScript.Echo(f(undefined)[1]);
WScript.Echo(f(undefined)[1]); // undefined in array parameter should still be set (legacy behavior is missing value)