mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00:00
LibWeb: Make WindowObject's prototype immutable
While I was implementing IDL special operations, I noticed that for global platform objects (e.g. WindowObject), the IDL spec makes their prototype immutable. https://heycam.github.io/webidl/#platform-object-setprototypeof
This commit is contained in:
parent
f6b24a72ee
commit
e0e41116a4
Notes:
sideshowbarker
2024-07-18 03:25:44 +09:00
Author: https://github.com/Lubrsi
Commit: e0e41116a4
Pull-request: https://github.com/SerenityOS/serenity/pull/10219
2 changed files with 9 additions and 0 deletions
|
@ -60,6 +60,8 @@ public:
|
|||
return *constructor;
|
||||
}
|
||||
|
||||
virtual bool internal_set_prototype_of(JS::Object* prototype) override;
|
||||
|
||||
private:
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue