Refactor the call hook on non-callback interface objects (fixes #10744)

It's now set through the intermediate InterfaceConstructorBehavior structure,
which lets us improve the abstraction around NonCallbackInterfaceObjectClass
a bit better.

When the interface's constructor is supposed to always throw, the error for
calling `Foo()` without new is "Illegal constructor.". when the interface
actually defines an interface, the error is instead
"This constructor needs to be called with `new`.".
This commit is contained in:
Anthony Ramine 2016-04-23 14:02:55 +02:00
parent a45f117838
commit 4c2ca7a8c9
6 changed files with 64 additions and 47 deletions

View file

@ -42,7 +42,3 @@
[Array with mixed types]
expected: FAIL
[Blob constructor with no arguments, without 'new']
bug: https://github.com/servo/servo/issues/10744
expected: FAIL