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:
Andreas Kling 2026-03-19 14:18:27 -05:00 committed by Andreas Kling
parent 30f108ba36
commit 362207b45d
Notes: github-actions[bot] 2026-03-20 02:56:28 +00:00
7 changed files with 4 additions and 43 deletions

View file

@ -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);