2.1.113 [ECMA-262/6] Section 22.1.3.26 Array.prototype.toLocaleString ( [ reserved1 [ , reserved2 ] ] )
V0031: Array.prototype.toLocaleString uses InvokeBuiltinMethod instead of Invoke
The specification states:
-
22.1.3.26 Array.prototype.toLocaleString ( [ reserved1 [ , reserved2 ] ] ) An ECMAScript implementation that includes the ECMA-402 Internationalization API must implement the Array.prototype.toLocaleString method as specified in the ECMA-402 specification. If an ECMAScript implementation does not include the ECMA-402 API the following specification of the toLocaleString method is used. ... The following steps are taken: ... 10. Else a. Let R be ToString(Invoke(firstElement, "toLocaleString")). b. ReturnIfAbrupt(R). ... 12. Repeat, while k < len ... e. Else i. Let R be ToString(Invoke(nextElement, "toLocaleString")). ii. ReturnIfAbrupt(R).
All document modes (All versions)
Array.prototype.toLocaleString
uses InvokeBuiltinMethod
instead of Invoke
:
...
10. Else
a. Let R be ToString(InvokeBuiltinMethod(firstElement, "toLocaleString")).
b. ReturnIfAbrupt(R).
...
12. Repeat, while k < len
...
e. Else
i. Let R be ToString(InvokeBuiltinMethod(nextElement, "toLocaleString")).
ii. ReturnIfAbrupt(R).