aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/create.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-04-23 14:02:55 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-04-25 11:44:59 +0200
commit4c2ca7a8c9244746ac168942651b0df6b6476626 (patch)
treee2d181c9dd1cf1c799ad69ad76aafe4c2996e354 /components/script/dom/create.rs
parenta45f117838d542ceb8f3557321dc410d4fbab3e5 (diff)
downloadservo-4c2ca7a8c9244746ac168942651b0df6b6476626.tar.gz
servo-4c2ca7a8c9244746ac168942651b0df6b6476626.zip
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`.".
Diffstat (limited to 'components/script/dom/create.rs')
0 files changed, 0 insertions, 0 deletions