LibJS: Allow constructing generator from function with null "prototype"

Fixes 4 test262 tests and simplifies some upcoming stuff.
This commit is contained in:
Andreas Kling
2025-11-17 10:23:56 +01:00
committed by Andreas Kling
parent acce880359
commit d8f5971ddf
Notes: github-actions[bot] 2025-11-17 22:44:21 +00:00
5 changed files with 13 additions and 9 deletions

View File

@@ -44,7 +44,7 @@ public:
Optional<String> const& generator_brand() const { return m_generator_brand; }
private:
AsyncGenerator(Realm&, Object& prototype, NonnullOwnPtr<ExecutionContext>);
AsyncGenerator(Realm&, Object* prototype, NonnullOwnPtr<ExecutionContext>);
virtual void visit_edges(Cell::Visitor&) override;