1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

LibJS: Port Value::get_method() to GCPtr

This commit is contained in:
Linus Groh 2023-04-13 15:41:29 +02:00 committed by Andreas Kling
parent 9279b0780d
commit b33b0d60e6
13 changed files with 36 additions and 36 deletions

View file

@ -1401,7 +1401,7 @@ ThrowCompletionOr<GCPtr<FunctionObject>> get_dispose_method(VM& vm, Value value,
// 2. Else,
// a. Let method be ? GetMethod(V, @@dispose).
return GCPtr<FunctionObject> { TRY(value.get_method(vm, vm.well_known_symbol_dispose())) };
return TRY(value.get_method(vm, vm.well_known_symbol_dispose()));
}
// 2.1.5 Dispose ( V, hint, method ), https://tc39.es/proposal-explicit-resource-management/#sec-dispose