1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 02:37:35 +00:00

LibWeb/WebIDL: Introduce ObservableArray

ObservableArray inherits from JS::Array and overrides `internal_set`
and `internal_delete` to run an interceptor callback when an indexed
item is added or deleted.
This commit is contained in:
Aliaksandr Kalenik 2024-03-07 23:29:25 +01:00 committed by Andreas Kling
parent 75a8d37c99
commit fceba6a257
4 changed files with 114 additions and 1 deletions

View file

@ -647,6 +647,7 @@ set(SOURCES
WebIDL/Buffers.cpp
WebIDL/CallbackType.cpp
WebIDL/DOMException.cpp
WebIDL/ObservableArray.cpp
WebIDL/OverloadResolution.cpp
WebIDL/Promise.cpp
WebSockets/WebSocket.cpp