lib/minjs/exceptions.rb in minjs-0.2.2 vs lib/minjs/exceptions.rb in minjs-0.3.0

- old
+ new

@@ -11,12 +11,12 @@ def to_s t = '' t << super t << "\n" if @lex - line, col = @lex.line_col(@lex_pos) - t << "line: #{line}, col: #{col}\n" - t << @lex.debug_str(@lex_pos, line, col) + row, col = @lex.row_col(@lex_pos) + t << "row: #{row}, col: #{col}\n" + t << @lex.debug_str(@lex_pos, row, col) end t end end end