mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
LibJS: Port Value::get_method() to GCPtr
This commit is contained in:
committed by
Andreas Kling
parent
9279b0780d
commit
b33b0d60e6
Notes:
sideshowbarker
2024-07-16 22:26:05 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/b33b0d60e6 Pull-request: https://github.com/SerenityOS/serenity/pull/18346
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user