Export (0) Print
Expand All
Expand Minimize

2.1.11 [ECMA-262/5] Section 15.4.4.3, Array.prototype.toLocaleString ()

V0010:

The specification states:

8.   Else
…
d.   Let R be the result of calling the [[Call]] internal method of func 
providing elementObj as the this value and an empty arguments list.
…
10.   Repeat, while k < len
…
d.   Else
…
iv.   Let R be the result of calling the [[Call]] internal method of func 
providing elementObj as the this value and an empty arguments list.

IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)

For the steps that are described in steps 8.d and 10.d.iv, if a recursive call to toLocaleString would cause a non-terminating recursion, the empty string is used as the result.

V0011:

The specification states:

When the toString method is called, the following steps are taken: 
1.  Let array be the result of calling ToObject on the this value. 
2.  Let func be the result of calling the [[Get]] internal method of array with argument "join". 
3.  If IsCallable(func) is false, then let func be the standard built-in method Object.prototype.toString (15.2.4.2). 
4.  Return the result of calling the [[Call]] internal method of func providing array as the this value and an empty arguments list.

IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)

In step 4, the separator character is determined by using the Microsoft Windows GetLocaleInfo system function and requesting the LOCALE_LIST value for the current user locale.

V0012:

The specification states:

NOTE 2 The toLocaleString function is intentionally generic; it does not require that its this value be an Array object. Therefore it can be transferred to other kinds of objects for use as a method. Whether the toLocaleString function can be applied successfully to a host object is implementation-dependent.

IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)

The toLocaleString method can be applied to a host object; however, some host objects may reject such an application.

Show:
© 2014 Microsoft