[Webkit-unassigned] [Bug 64678] Fix bugs in Object.prototype this handling.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 20 00:51:47 PDT 2011


--- Comment #12 from Gavin Barraclough <barraclough at apple.com>  2011-07-20 00:51:47 PST ---
(In reply to comment #11)
> I worry a bit about the performance implications of allocating a string every time.

That's a fair concern, but I think we should probably stick with the simple solution for now & optimize if necessary.

We don't cache the results of Object.prototype.toString for other classes of object, which I imagine is something we could do.  Undefined/null are probably the least likely types to be converted (since behavior here is not going to be uniform across browsers right now), so any caching that is specific to undefined/null values is likely to be suboptimal.

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