mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
LibJS: Convert Object::create() to NonnullGCPtr
This commit is contained in:
parent
f990095728
commit
ddc6e139a6
45 changed files with 80 additions and 80 deletions
|
@ -385,7 +385,7 @@ JS::VM& main_thread_vm()
|
|||
// and ensure_web_constructor() invocations.
|
||||
// FIXME: Find a nicer way to do this.
|
||||
JS::DeferGC defer_gc(root_realm->heap());
|
||||
auto* object = JS::Object::create(*root_realm, nullptr);
|
||||
auto object = JS::Object::create(*root_realm, nullptr);
|
||||
root_realm->set_global_object(object, object);
|
||||
add_window_exposed_interfaces(*object, *root_realm);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue