diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-06-03 12:46:11 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-03 14:47:15 +0100 |
commit | 32ee195d62ad47ed89cd7ca62ddd4bb32899018c (patch) | |
tree | db450342c570049414bf98825726c4f213baf0ee /Userland/Libraries | |
parent | 8b449214aff2f5a9ee17f42bb0a6049f2173aba0 (diff) | |
download | serenity-32ee195d62ad47ed89cd7ca62ddd4bb32899018c.zip |
LibJS: Avoid allocations in the Exception constructor
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Exception.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Exception.h b/Userland/Libraries/LibJS/Runtime/Exception.h index 885bb91105..69df020635 100644 --- a/Userland/Libraries/LibJS/Runtime/Exception.h +++ b/Userland/Libraries/LibJS/Runtime/Exception.h @@ -26,14 +26,14 @@ public: virtual ~Exception() override = default; Value value() const { return m_value; } - const Vector<TracebackFrame>& traceback() const { return m_traceback; } + const Vector<TracebackFrame, 32>& traceback() const { return m_traceback; } private: virtual const char* class_name() const override { return "Exception"; } virtual void visit_edges(Visitor&) override; Value m_value; - Vector<TracebackFrame> m_traceback; + Vector<TracebackFrame, 32> m_traceback; }; } |