mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-18 18:00:31 +00: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:
parent
30f108ba36
commit
362207b45d
Notes:
github-actions[bot]
2026-03-20 02:56:28 +00:00
Author: https://github.com/awesomekling
Commit: 362207b45d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8517
7 changed files with 4 additions and 43 deletions
|
|
@ -84,8 +84,7 @@ ThrowCompletionOr<Value> NativeJavaScriptBackedFunction::call()
|
|||
|
||||
auto generator_object = GeneratorObject::create(realm, result, GC::Ref { *this }, vm.running_execution_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(realm, generator_object);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue