mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +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
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue