diff options
author | (quasar) nebula <towerofnix@gmail.com> | 2021-04-15 13:50:44 -0300 |
---|---|---|
committer | (quasar) nebula <towerofnix@gmail.com> | 2021-04-15 13:50:44 -0300 |
commit | e5681aa48b464fc194b4445670e7bf027f314562 (patch) | |
tree | 3cc741d04d840f502b68fb30116f7ad1c6362d8a /upd8.js | |
parent | 4f8158e579a7092fcfbf8efc944f6608d85f70b6 (diff) |
parser error throwing/handling bugfixes
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}`); |