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:
Tim Ledbetter 2024-06-11 07:07:07 +01:00 committed by Andreas Kling
commit 88d425f32b
Notes: sideshowbarker 2024-07-17 02:38:39 +09:00
4 changed files with 15 additions and 1 deletions

View file

@ -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; }