LibJS: Remove ExecutionContext::function_name field

Instead of having ExecutionContext track function names separately,
we give FunctionObject a virtual function that returns an appropriate
name string for use in call stacks.
This commit is contained in:
Andreas Kling
2025-10-29 08:28:41 +01:00
committed by Andreas Kling
parent e967631763
commit 4c7ffc0552
Notes: github-actions[bot] 2025-10-29 20:22:09 +00:00
20 changed files with 57 additions and 17 deletions

View File

@@ -46,6 +46,8 @@ public:
virtual ThrowCompletionOr<GC::Ref<Object>> internal_construct(ExecutionContext&, FunctionObject& new_target) override;
ThrowCompletionOr<void> validate_non_revoked_proxy() const;
virtual Utf16String name_for_call_stack() const override;
private:
ProxyObject(Object& target, Object& handler, Object& prototype);