mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
LibJS: Convert BooleanObject::create() to NonnullGCPtr
This commit is contained in:
parent
cf0a24ff0c
commit
b48fa8756f
3 changed files with 4 additions and 4 deletions
|
@ -536,7 +536,7 @@ ThrowCompletionOr<Object*> Value::to_object(VM& vm) const
|
|||
// Boolean
|
||||
case BOOLEAN_TAG:
|
||||
// Return a new Boolean object whose [[BooleanData]] internal slot is set to argument. See 20.3 for a description of Boolean objects.
|
||||
return BooleanObject::create(realm, as_bool());
|
||||
return BooleanObject::create(realm, as_bool()).ptr();
|
||||
// String
|
||||
case STRING_TAG:
|
||||
// Return a new String object whose [[StringData]] internal slot is set to argument. See 22.1 for a description of String objects.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue