mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 17:28:48 +00:00
LibJS: Make AsyncFunctionStart and AsyncBlockStart templates
This will allow implementing a version of these functions that accepts a JS::SafeFunction, which is needed for the implementation of Array.fromAsync.
This commit is contained in:
parent
7b5362fea6
commit
930dd2948f
Notes:
sideshowbarker
2024-07-17 06:46:15 +09:00
Author: https://github.com/shannonbooth
Commit: 930dd2948f
Pull-request: https://github.com/SerenityOS/serenity/pull/20047
Reviewed-by: https://github.com/linusg
3 changed files with 13 additions and 5 deletions
|
@ -737,7 +737,7 @@ ThrowCompletionOr<void> SourceTextModule::execute_module(VM& vm, GCPtr<PromiseCa
|
|||
VERIFY(capability != nullptr);
|
||||
|
||||
// b. Perform AsyncBlockStart(capability, module.[[ECMAScriptCode]], moduleContext).
|
||||
async_block_start(vm, m_ecmascript_code, *capability, module_context);
|
||||
async_block_start<NonnullRefPtr<Statement const>>(vm, m_ecmascript_code, *capability, module_context);
|
||||
}
|
||||
|
||||
// 11. Return unused.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue