| 12345678910111213141516171819202122232425262728 |
- //-------------------------------------------------------------------------------------------------------
- // Copyright (C) Microsoft. All rights reserved.
- // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
- //-------------------------------------------------------------------------------------------------------
- function writeLine(v) {
- v = v.replace(/\(pdt\)/g, "(pacific daylight time)")
- .replace(/\(pst\)/g, "(pacific standard time)");
- WScript.Echo(v);
- }
- var a = new Object();
- a.toString = function() { writeLine("In toString() "); return "foo" }
- var v = String.prototype.toLowerCase.call(a);
- writeLine("Test call ToString - user defined object: " + v);
- a = true;
- v = String.prototype.toLowerCase.call(a);
- writeLine("Test call ToString - bool: " + v);
- a = 123
- v = String.prototype.toLowerCase.call(a);
- writeLine("Test call ToString - number: " + v);
- a = new Date();
- a.setTime(20000)
- v = String.prototype.toLowerCase.call(a);
- writeLine("Test call ToString - date: " + v);
|