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
Notes: sideshowbarker 2024-07-16 22:26:05 +09:00
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