[Webkit-unassigned] [Bug 81588] Array.prototype.toString should be generic

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Apr 7 07:35:44 PDT 2012


--- Comment #18 from hojong.han at samsung.com  2012-04-07 07:35:44 PST ---
(In reply to comment #17)
> I think this patch might not be sufficient. If someone overrides Array.prototype.join, arrays need to reflect that. For example:
> Array.prototype.join = function() { return 'join' }
> shouldBeEqualToString('[0, 1, 2].toString()', 'join');
> It seems like the right thing to do is to not special case real arrays and always call join as the spec says.

I think you are right on the basic principle. It'd better call join as your explanation.
but some considerations, such as arguments, will be necessay if join were called in toString.
I'll patch again with these.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list