LibJS: Allow assigning an error message after Error object creation

This will be used by structured deserialization in LibWeb.
This commit is contained in:
Timothy Flynn 2025-07-17 09:48:16 -04:00 committed by Tim Flynn
commit 3fb4e769d8
Notes: github-actions[bot] 2025-07-18 14:11:17 +00:00
2 changed files with 33 additions and 27 deletions

View file

@ -41,6 +41,8 @@ public:
ThrowCompletionOr<void> install_error_cause(Value options);
void set_message(String);
Vector<TracebackFrame, 32> const& traceback() const { return m_traceback; }
protected: