mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibJS: Move async_block_start out of ECMAScriptFunctionObject
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 20:29:22 +09:00
Author: https://github.com/davidot Commit: https://github.com/SerenityOS/serenity/commit/39b134e8c1e Pull-request: https://github.com/SerenityOS/serenity/pull/11957 Reviewed-by: https://github.com/emanuele6 Reviewed-by: https://github.com/linusg
@@ -13,6 +13,8 @@
|
||||
|
||||
namespace JS {
|
||||
|
||||
void async_block_start(VM&, NonnullRefPtr<Statement> const& parse_node, PromiseCapability const&, ExecutionContext&);
|
||||
|
||||
// 10.2 ECMAScript Function Objects, https://tc39.es/ecma262/#sec-ecmascript-function-objects
|
||||
class ECMAScriptFunctionObject final : public FunctionObject {
|
||||
JS_OBJECT(ECMAScriptFunctionObject, FunctionObject);
|
||||
@@ -97,7 +99,6 @@ private:
|
||||
void ordinary_call_bind_this(ExecutionContext&, Value this_argument);
|
||||
|
||||
void async_function_start(PromiseCapability const&);
|
||||
void async_block_start(PromiseCapability const&, ExecutionContext&);
|
||||
|
||||
ThrowCompletionOr<void> function_declaration_instantiation(Interpreter*);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user