mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
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:
parent
a45f117838
commit
4c2ca7a8c9
6 changed files with 64 additions and 47 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue