diff options
Diffstat (limited to 'upd8.js')
-rwxr-xr-x | upd8.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/upd8.js b/upd8.js index 9e2ed2ee..4555b004 100755 --- a/upd8.js +++ b/upd8.js @@ -1000,6 +1000,8 @@ const replacerSpec = { let string = ''; let iString = 0; + stopped = false; + const pushTextNode = () => { if (string.length) { nodes.push({i: iString, type: 'text', data: string}); @@ -1149,7 +1151,7 @@ const replacerSpec = { throw errorNode; } - const { i, message } = errorNode; + const { i, data: { message } } = errorNode; // TODO: Visual line/surrounding characters presentation! throw new SyntaxError(`Parse error (at pos ${i}): ${message}`); |