mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +00:00
LibJS: Port Value::to_object() to NonnullGCPtr
This commit is contained in:
parent
e79f5b6e85
commit
f345f72b55
29 changed files with 264 additions and 263 deletions
|
@ -236,10 +236,10 @@ JS_DEFINE_NATIVE_FUNCTION(ArrayConstructor::from)
|
|||
// 6. NOTE: items is not an Iterable so assume it is an array-like object.
|
||||
|
||||
// 7. Let arrayLike be ! ToObject(items).
|
||||
auto* array_like = MUST(items.to_object(vm));
|
||||
auto array_like = MUST(items.to_object(vm));
|
||||
|
||||
// 8. Let len be ? LengthOfArrayLike(arrayLike).
|
||||
auto length = TRY(length_of_array_like(vm, *array_like));
|
||||
auto length = TRY(length_of_array_like(vm, array_like));
|
||||
|
||||
GCPtr<Object> array;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue