Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

2.1.9 [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, IE11 Mode, and EdgeHTML 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, IE11 Mode, and EdgeHTML 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.

Show:
© 2016 Microsoft