mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00
LibJS: Store basic traceback in Exception
Nothing fancy like line numbers, but Exception now stores a list of function names up to the current call frame.
This commit is contained in:
parent
a48080f62d
commit
4f6912c605
2 changed files with 10 additions and 0 deletions
|
@ -37,12 +37,14 @@ public:
|
|||
virtual ~Exception() override;
|
||||
|
||||
Value value() const { return m_value; }
|
||||
const Vector<String>& trace() const { return m_trace; }
|
||||
|
||||
private:
|
||||
virtual const char* class_name() const override { return "Exception"; }
|
||||
virtual void visit_children(Visitor&) override;
|
||||
|
||||
Value m_value;
|
||||
Vector<String> m_trace;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue