Re: [webidl] Allow constructor<ClassType> as a type accepted by functions. (#101)

If I were to guess what this means it would be doing something like an `IsConstructor(f)` check, plus a check that `f.__proto__ === Painter`. It doesn't check that the constructor is actually doing what you want, though: e.g. I could do `class X extends Painter { constructor() { return {}; } }` and all instances created by `X` would not be `Painter`s in any way.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/101#issuecomment-201000420

Received on Thursday, 24 March 2016 20:12:56 UTC