Skip to content

Commit

Permalink
Added Exception.Stack() method. Closes #479
Browse files Browse the repository at this point in the history
  • Loading branch information
Valeriy Gorelov committed Jun 10, 2024
1 parent ccbae20 commit 40ec41b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,10 @@ func (e *Exception) Unwrap() error {
return nil
}

func (e *Exception) Stack() []StackFrame {
return e.stack
}

func (r *Runtime) createIterProto(val *Object) objectImpl {
o := newBaseObjectObj(val, r.global.ObjectPrototype, classObject)

Expand Down

0 comments on commit 40ec41b

Please sign in to comment.