diff --git a/runtime.go b/runtime.go index 0139ef10..e7c4a26a 100644 --- a/runtime.go +++ b/runtime.go @@ -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)