(str)
| 1 | class Stream { |
| 2 | constructor(str) { |
| 3 | this.str = str |
| 4 | this.pos = 0 |
| 5 | } |
| 6 | |
| 7 | err(msg) { |
| 8 | throw new SyntaxError(msg + " at " + this.pos + " in " + JSON.stringify(this.str)) |
nothing calls this directly
no outgoing calls
no test coverage detected