// Frames is an iterator over the frames in a Stack. func(s Stack) Frames(yield func(f StackFrame)bool) bool { if s.id == 0 { returntrue } stk := s.table.stacks.mustGet(s.id) for _, f := range stk.frames { sf := StackFrame{ PC: f.pc, Func: s.table.strings.mustGet(f.funcID), File: s.table.strings.mustGet(f.fileID), Line: f.line, } if !yield(sf) { returnfalse } } returntrue }