On Sat, Apr 11, 2015 at 9:09 AM Sébastien Cevey <[email protected]>
wrote:
> Does the same apply to subclassing Error?
>
Subclassing Error works in V8 (Chrome 43).
Caitlin, the only issue I know of in V8 regarding subclassing is
subclassing Object and the weird wrapper we create.
class X extends Object {}
let x = new X('hi');
print(x); // Oops, we created a String wrapper.
This is because we haven't implemented new.target for our self hosted
Object function constructor.
https://code.google.com/p/v8/issues/detail?id=3886
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss