mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibJS: Make JS::Cell a Weakable
This makes things easier downstream of Cell, and is preparation for using weak pointers in prototype chain property caches.
This commit is contained in:
parent
b5a7a8dbfd
commit
3945e1a82a
Notes:
sideshowbarker
2024-07-17 08:59:18 +09:00
Author: https://github.com/awesomekling
Commit: 3945e1a82a
Pull-request: https://github.com/SerenityOS/serenity/pull/24206
Reviewed-by: https://github.com/kennethmyhra
12 changed files with 13 additions and 31 deletions
|
@ -14,9 +14,7 @@ namespace Web::HTML {
|
|||
|
||||
// NOTE: Temporary class to handle console messages from inside Workers
|
||||
|
||||
class WorkerDebugConsoleClient final
|
||||
: public JS::ConsoleClient
|
||||
, public Weakable<WorkerDebugConsoleClient> {
|
||||
class WorkerDebugConsoleClient final : public JS::ConsoleClient {
|
||||
JS_CELL(WorkerDebugConsoleClient, JS::ConsoleClient);
|
||||
JS_DECLARE_ALLOCATOR(WorkerDebugConsoleClient);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue