mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:07:45 +00:00
LibJS: Convert BigIntObject::create() to NonnullGCPtr
This commit is contained in:
parent
6528cbf51b
commit
cf0a24ff0c
3 changed files with 5 additions and 5 deletions
|
@ -548,7 +548,7 @@ ThrowCompletionOr<Object*> Value::to_object(VM& vm) const
|
|||
// BigInt
|
||||
case BIGINT_TAG:
|
||||
// Return a new BigInt object whose [[BigIntData]] internal slot is set to argument. See 21.2 for a description of BigInt objects.
|
||||
return BigIntObject::create(realm, const_cast<JS::BigInt&>(as_bigint()));
|
||||
return BigIntObject::create(realm, const_cast<JS::BigInt&>(as_bigint())).ptr();
|
||||
// Object
|
||||
case OBJECT_TAG:
|
||||
// Return argument.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue