mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 02:31:22 +00:00
`[1, 'x', true].toLocaleString()` gave `[object Number],[object String],[object Boolean]` because the wrappers' prototypes have no `toString` on this branch and the lookup reached Object.prototype.toString. Object.prototype.toLocaleString now returns the string form of the object's primitive value when `toString` is not found on the object or on its chain up to its standard prototype. A `toString` on the object or that prototype is still called.