mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02: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:
Notes:
sideshowbarker
2024-07-17 08:59:18 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3945e1a82a Pull-request: https://github.com/SerenityOS/serenity/pull/24206 Reviewed-by: https://github.com/kennethmyhra
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user