mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
LibJS: Port Value::get_method() to GCPtr
This commit is contained in:
parent
9279b0780d
commit
b33b0d60e6
13 changed files with 36 additions and 36 deletions
|
@ -55,7 +55,7 @@ static JS::ThrowCompletionOr<Vector<String>> convert_value_to_sequence_of_string
|
|||
return vm.throw_completion<JS::TypeError>(JS::ErrorType::NotAnObject, TRY_OR_THROW_OOM(vm, value.to_string_without_side_effects()));
|
||||
|
||||
// 2. Let method be ? GetMethod(V, @@iterator).
|
||||
auto* method = TRY(value.get_method(vm, vm.well_known_symbol_iterator()));
|
||||
auto method = TRY(value.get_method(vm, vm.well_known_symbol_iterator()));
|
||||
|
||||
// 3. If method is undefined, throw a TypeError.
|
||||
if (!method)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue