mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibJS: Remove remaining C++ pipeline artifacts
Clean up leftover references to the removed C++ pipeline: - Remove stale forward declarations from Forward.h (ASTNode, Parser, Program, FunctionNode, ScopeNode, etc.) - Delete unused FunctionParsingInsights.h - Remove dead get_builtin(MemberExpression const&) declaration from Builtins.h - Update stale comments referencing ASTCodegen.cpp and generate_bytecode()
This commit is contained in:
committed by
Andreas Kling
parent
30f108ba36
commit
362207b45d
Notes:
github-actions[bot]
2026-03-20 02:56:28 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/362207b45d5 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8517
@@ -527,8 +527,7 @@ ThrowCompletionOr<Value> ECMAScriptFunctionObject::ordinary_call_evaluate_body(V
|
||||
|
||||
auto generator_object = GeneratorObject::create(*context.realm, result, GC::Ref { *this }, context.copy());
|
||||
|
||||
// NOTE: Async functions are entirely transformed to generator functions, and wrapped in a custom driver that returns a promise
|
||||
// See AwaitExpression::generate_bytecode() for the transformation.
|
||||
// NOTE: Async functions are entirely transformed to generator functions, and wrapped in a custom driver that returns a promise.
|
||||
if (kind() == FunctionKind::Async)
|
||||
return AsyncFunctionDriverWrapper::create(*context.realm, generator_object);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user