blob: 2ea46a61223e0c79ca90728a9ceb9ebd2c4cc196 [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.
//-------------------------------------------------------------------------------------------------------
function SetArrayIndex(a, i)
{
a[i] = "blah";
}
function test_obj_proto(proto)
{
var obj = Object.create(proto);
//var obj = {};
obj[0] = 0;
SetArrayIndex(obj, 0);
SetArrayIndex(obj, 1);
WScript.Echo(obj[1]);
}