blob: 6cfe8aac32be8af5899e8059b78fe0f453475bce [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.
//-------------------------------------------------------------------------------------------------------
obj = [1,2,3,4,5];
obj.constructor = function() { return {}; }
Object.freeze(obj);
if ('[2,3]' == JSON.stringify(Array.prototype.slice.call(obj,1,3)))
{
WScript.Echo('Pass');
}
else
{
WScript.Echo('Fail');
}