(snippet, message)
| 35 | } |
| 36 | |
| 37 | function wrapForError(snippet, message) { |
| 38 | return "try { (function() {\n" + snippet + "})();\n" + |
| 39 | "console.missingErr()\n} catch (_e) { console.compareErr(_e, " + |
| 40 | JSON.stringify(message) + ") }\n" |
| 41 | } |
| 42 | |
| 43 | function pos(index) { |
| 44 | return "line " + (input.slice(0, index).split("\n").length + 1) |