mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 14:02:20 +00:00
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:
parent
7dc28a20d0
commit
80cd3712c2
Notes:
sideshowbarker
2024-07-17 10:54:57 +09:00
Author: https://github.com/caitp 🔰
Commit: 80cd3712c2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/379
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/tcl3
3 changed files with 68 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
derived class method present and invoked!
|
Loading…
Add table
Add a link
Reference in a new issue