[Webkit-unassigned] [Bug 18056] Cannot convert DOM exception prototype object to a string

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 4 01:31:29 PDT 2009


--- Comment #6 from Cameron McCormack <cam at mcc.id.au>  2009-09-04 01:31:29 PDT ---
It's because DOMException.prototype.toString shadows the
Object.prototype.toString, and the generated code for
DOMException.prototype.toString throws if its this argument is not a
DOMException object -- which it isn't in this case, it's a
DOMExceptionPrototype object.  So this patch makes the generated toString work
on objects of the class or of the prototype class.

There are a number of interfaces that have a toString on them, causing
shadowing toString properties to be placed on the interface's prototype object,
most of which are tested in the test in the patch.

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