mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
Everywhere: Convert VM::call() to JS::call()
This commit is contained in:
parent
d436746c95
commit
1ef633472b
Notes:
sideshowbarker
2024-07-17 20:23:01 +09:00
Author: https://github.com/mjz19910
Commit: 1ef633472b
Pull-request: https://github.com/SerenityOS/serenity/pull/12067
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
37 changed files with 160 additions and 157 deletions
|
@ -37,7 +37,7 @@ ThrowCompletionOr<Object*> promise_resolve(GlobalObject& global_object, Object&
|
|||
auto promise_capability = TRY(new_promise_capability(global_object, &constructor));
|
||||
|
||||
// 3. Perform ? Call(promiseCapability.[[Resolve]], undefined, « x »).
|
||||
(void)TRY(vm.call(*promise_capability.resolve, js_undefined(), value));
|
||||
(void)TRY(call(global_object, *promise_capability.resolve, js_undefined(), value));
|
||||
|
||||
// 4. Return promiseCapability.[[Promise]].
|
||||
return promise_capability.promise;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue