Comment #2 on issue 2822 by [email protected]: Messages generated from
custom error events stringify as "[object Object]".
http://code.google.com/p/v8/issues/detail?id=2822
In a nutshell, it's fairly common for folks to fake inheritance via
`Subclass.prototype = new Superclass();`. Handlebars does this, and it's
been recommended by people who probably now know better:
http://www.nczonline.net/blog/2009/03/10/the-art-of-throwing-javascript-errors-part-2/
for example.
V8 supports `subclass.prototype = Object.create(superclass.prototype);`
perfectly, as well as the similar mechanism that Closure uses
in 'goog.inherit'
(http://docs.closure-library.googlecode.com/git/closure_goog_base.js.source.html#line1466).
It falls down with this simpler sample, however.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.