2.1.25 [ECMA-262/7] Section 19.1.3.5 Object.prototype.toLocaleString ( [ reserved1 [ , reserved2 ] ] )
V0198: 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").
EdgeHTML Mode
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. Return ToString(obj).