mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
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:
parent
e967631763
commit
4c7ffc0552
Notes:
github-actions[bot]
2025-10-29 20:22:09 +00:00
Author: https://github.com/awesomekling
Commit: 4c7ffc0552
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6629
20 changed files with 57 additions and 17 deletions
|
|
@ -139,6 +139,8 @@ public:
|
|||
Statement const& ecmascript_code() const { return *shared_data().m_ecmascript_code; }
|
||||
[[nodiscard]] virtual FunctionParameters const& formal_parameters() const override { return *shared_data().m_formal_parameters; }
|
||||
|
||||
virtual Utf16String name_for_call_stack() const override;
|
||||
|
||||
Utf16FlyString const& name() const { return shared_data().m_name; }
|
||||
void set_name(Utf16FlyString const& name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue