LibJS: Convert Object::create() to NonnullGCPtr

This commit is contained in:
Linus Groh
2022-12-13 20:49:50 +00:00
parent f990095728
commit ddc6e139a6
Notes: sideshowbarker 2024-07-17 03:17:23 +09:00
45 changed files with 80 additions and 80 deletions

View File

@@ -600,7 +600,7 @@ ThrowCompletionOr<Object*> coerce_options_to_object(VM& vm, Value options)
// 1. If options is undefined, then
if (options.is_undefined()) {
// a. Return OrdinaryObjectCreate(null).
return Object::create(realm, nullptr);
return Object::create(realm, nullptr).ptr();
}
// 2. Return ? ToObject(options).