mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibJS: Convert NumberObject::create() to NonnullGCPtr
This commit is contained in:
parent
b42e293ddd
commit
f990095728
Notes:
sideshowbarker
2024-07-17 07:11:12 +09:00
Author: https://github.com/linusg
Commit: f990095728
Pull-request: https://github.com/SerenityOS/serenity/pull/16479
Reviewed-by: https://github.com/davidot ✅
3 changed files with 4 additions and 4 deletions
|
@ -523,7 +523,7 @@ ThrowCompletionOr<Object*> Value::to_object(VM& vm) const
|
|||
// Number
|
||||
if (is_number()) {
|
||||
// Return a new Number object whose [[NumberData]] internal slot is set to argument. See 21.1 for a description of Number objects.
|
||||
return NumberObject::create(realm, as_double());
|
||||
return NumberObject::create(realm, as_double()).ptr();
|
||||
}
|
||||
|
||||
switch (m_value.tag) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue