(msg, line, col, pos)
| 729 | }; |
| 730 | |
| 731 | function croak(msg, line, col, pos) { |
| 732 | var ctx = S.input.context(); |
| 733 | js_error(msg, |
| 734 | line != null ? line : ctx.tokline, |
| 735 | col != null ? col : ctx.tokcol, |
| 736 | pos != null ? pos : ctx.tokpos); |
| 737 | }; |
| 738 | |
| 739 | function token_error(token, msg) { |
| 740 | croak(msg, token.line, token.col); |
no test coverage detected