LibWeb: Implement WebIDL constructor flow for derived classes

Following the rules in the algorithm from
https://webidl.spec.whatwg.org/#js-platform-objects, "To Internally
create a new object implementing the interface interface", this change
incorporates the steps to load a prototype from new.target, and write
it to the created instance returned from constructor_impl(). This
mirrors the code for generate_html_constructor(), which incorporates
additional steps needed by Custom Elements.

Bug #334
This commit is contained in:
Caitlin Potter 2024-07-02 22:20:52 -04:00 committed by Andreas Kling
commit 80cd3712c2
Notes: sideshowbarker 2024-07-17 10:54:57 +09:00
3 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1 @@
derived class method present and invoked!