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:
Andreas Kling 2024-05-02 10:24:23 +02:00
commit 3945e1a82a
Notes: sideshowbarker 2024-07-17 08:59:18 +09:00
12 changed files with 13 additions and 31 deletions

View file

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