2.1.67 [ECMA-262/6] Section 19.1.3.5 Object.prototype.toLocaleString ( [ reserved1 [ , reserved2 ] ] )

V0134: Object.prototype.toLocaleString passes ToObject(this) to the toString method instead of this

The specification states:

 19.1.3.5 Object.prototype.toLocaleString ( [ reserved1 [ , reserved2 ] ] )
  
     When the toLocaleString method is called, the following steps are taken:
  
         1.  Let O be the this value.
         2.  Return Invoke(O, "toString").

All document modes (All versions)

Object.prototype.toLocaleString passes ToObject(this) to the toString method instead of this. These are the steps:

    1.  Let O be the this value.

    2.  Let obj be ToObject(O).

    3.  ReturnIfAbrupt(obj).

    4.  Return ToString(obj).