Searched defs:toLocaleString (Results 1 - 10 of 10) sorted by relevance
/external/chromium_org/v8/test/mjsunit/regress/ |
H A D | regress-877615.js | 28 Number.prototype.toLocaleString = function() { return 'invalid'; }; 29 assertEquals('invalid', [1].toLocaleString()); // invalid 31 Number.prototype.toLocaleString = 'invalid'; 32 assertThrows(function() { [1].toLocaleString(); }); // Not callable. 34 delete Number.prototype.toLocaleString; 36 assertEquals([1].toLocaleString(), 'invalid'); // Uses ToObject on elements.
|
H A D | regress-r3391.js | 28 // Check what we do if toLocaleString doesn't return a string when we are 29 // calling Array.prototype.toLocaleString. The standard is somewhat 46 var o = {toString: evil_to_string, toLocaleString: evil_to_locale_string}; 49 [o].toLocaleString();
|
/external/v8/test/mjsunit/regress/ |
H A D | regress-877615.js | 28 Number.prototype.toLocaleString = function() { return 'invalid'; }; 29 assertEquals('invalid', [1].toLocaleString()); // invalid 31 Number.prototype.toLocaleString = 'invalid'; 32 assertThrows(function() { [1].toLocaleString(); }); // Not callable. 34 delete Number.prototype.toLocaleString; 36 assertEquals([1].toLocaleString(), 'invalid'); // Uses ToObject on elements.
|
H A D | regress-r3391.js | 28 // Check what we do if toLocaleString doesn't return a string when we are 29 // calling Array.prototype.toLocaleString. The standard is somewhat 46 var o = {toString: evil_to_string, toLocaleString: evil_to_locale_string}; 49 [o].toLocaleString();
|
/external/chromium_org/v8/test/webkit/fast/js/ |
H A D | object-prototype-toLocaleString.js | 25 'Tests: Object.prototype.toLocaleString(). Related bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=3989">3989 JSC doesn\'t implement Object.prototype.toLocaleString()</a>' 29 shouldBe("o.toLocaleString()", "o.toString()"); 30 o.toLocaleString = function () { return "Dynamic toLocaleString()"; } 31 shouldBe("o.toLocaleString()", '"Dynamic toLocaleString()"'); 33 shouldBe("Object.prototype.toLocaleString.call('Hello, world!')", '"Hello, world!"'); 37 shouldBe("Object.prototype.toLocaleString.call('Hello, world!')", '"stringPrototypeToString"');
|
H A D | toString-overrides.js | 28 'This test checks for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=4147">4147: Array.toString() and toLocaleString() improvements from KDE KJS</a>.' 33 var backupNumberToLocaleString = Number.prototype.toLocaleString; 35 var backupRegExpToLocaleString = RegExp.prototype.toLocaleString; 39 Number.prototype.toLocaleString = function() { return "toLocaleString"; } 41 RegExp.prototype.toLocaleString = function() { return "toLocaleString2"; } 45 shouldBe("[1].toLocaleString()", "'toLocaleString'"); 46 Number.prototype.toLocaleString = "invalid"; 47 shouldBe("[1].toLocaleString()", "' [all...] |
/external/chromium_org/v8/test/webkit/fast/js/kde/ |
H A D | Array.js | 203 var backupNumberToLocaleString = Number.prototype.toLocaleString; 205 var backupRegExpToLocaleString = RegExp.prototype.toLocaleString; 209 Number.prototype.toLocaleString = function() { return "toLocaleString"; } 211 RegExp.prototype.toLocaleString = function() { return "toLocaleString2"; } 215 shouldBe("[1].toLocaleString()", "'toLocaleString'"); 216 Number.prototype.toLocaleString = "invalid"; 217 shouldBe("[1].toLocaleString()", "'1'"); 219 shouldBe("[/r/].toLocaleString()", "'toLocaleString [all...] |
/external/chromium_org/v8/test/mjsunit/ |
H A D | array-tostring.js | 118 // Testing Array.prototype.toLocaleString 125 assertEquals("1,2,3,4", la1.toLocaleString()); 128 String.prototype.toLocaleString = Array.prototype.toLocaleString; 129 assertEquals("1,2,3,4", "1234".toLocaleString()); 131 // If toLocaleString of element is not callable, throw a TypeError. 132 var la2 = [1, {toLocaleString: "not callable"}, 3]; 133 assertThrows(function() { la2.toLocaleString(); }, TypeError); 135 // If toLocaleString of element is callable, call it. 136 var la3 = [1, {toLocaleString [all...] |
/external/v8/test/mjsunit/ |
H A D | array-tostring.js | 118 // Testing Array.prototype.toLocaleString 125 assertEquals("1,2,3,4", la1.toLocaleString()); 128 String.prototype.toLocaleString = Array.prototype.toLocaleString; 129 assertEquals("1,2,3,4", "1234".toLocaleString()); 131 // If toLocaleString of element is not callable, throw a TypeError. 132 var la2 = [1, {toLocaleString: "not callable"}, 3]; 133 assertThrows(function() { la2.toLocaleString(); }, TypeError); 135 // If toLocaleString of element is callable, call it. 136 var la3 = [1, {toLocaleString [all...] |
/external/chromium_org/third_party/WebKit/Source/core/Resources/pagepopups/ |
H A D | calendarPicker.js | 758 Month.prototype.toLocaleString = function() { 2791 this.labelElement.textContent = month.toLocaleString(); 2804 this.labelElement.textContent = this._useShortMonth ? month.toShortLocaleString() : month.toLocaleString();
|
Completed in 285 milliseconds