mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00:00
LibJS: Add the [[Unimplemented]] attribute
Properties marked with the [[Unimplemented]] attribute behave as normal but invoke the `VM::on_unimplemented_property_access callback` when they are accessed.
This commit is contained in:
parent
ebfb847d34
commit
88d425f32b
Notes:
sideshowbarker
2024-07-17 02:38:39 +09:00
Author: https://github.com/tcl3
Commit: 88d425f32b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/136
Reviewed-by: https://github.com/awesomekling
4 changed files with 15 additions and 1 deletions
|
@ -223,6 +223,7 @@ public:
|
|||
Function<void()> on_call_stack_emptied;
|
||||
Function<void(Promise&)> on_promise_unhandled_rejection;
|
||||
Function<void(Promise&)> on_promise_rejection_handled;
|
||||
Function<void(Object const&, PropertyKey const&)> on_unimplemented_property_access;
|
||||
|
||||
CustomData* custom_data() { return m_custom_data; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue