blob: 2532382b59e292a04a8d7eb421c9645b3cbdd126 [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 valueOfAccessed = "FAIL";
Date.prototype.valueOf = function () {
valueOfAccessed = "PASS";
return " ";
}
var dateObj = new Date(2010, 11, 31, 0, 0, 0, 0);
var dToJSON = dateObj.toJSON();
WScript.Echo(valueOfAccessed);