OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:toLocaleString
(Results
1 - 21
of
21
) sorted by null
/external/chromium_org/v8/test/mjsunit/regress/
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.
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/
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.
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/
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"');
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
()", "'1'")
[
all
...]
/external/chromium_org/v8/test/webkit/fast/js/kde/
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
()", "'toLocaleString2'")
[
all
...]
/external/chromium_org/v8/test/mjsunit/
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
: function() { return "XX";}}, 3]
[
all
...]
/external/v8/test/mjsunit/
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
: function() { return "XX";}}, 3]
[
all
...]
/libcore/luni/src/main/java/java/util/
Date.java
686
public String
toLocaleString
() {
/external/chromium_org/third_party/WebKit/Source/web/resources/
calendarPicker.js
758
Month.prototype.
toLocaleString
= function() {
[
all
...]
/prebuilts/sdk/10/
android.jar
/prebuilts/sdk/11/
android.jar
/prebuilts/sdk/13/
android.jar
/prebuilts/sdk/16/
android.jar
/prebuilts/sdk/4/
android.jar
/prebuilts/sdk/5/
android.jar
/prebuilts/sdk/6/
android.jar
/prebuilts/sdk/7/
android.jar
/prebuilts/sdk/8/
android.jar
/prebuilts/sdk/9/
android.jar
Completed in 184 milliseconds