« get me outta code hell

parser error throwing/handling bugfixes - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
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
commite5681aa48b464fc194b4445670e7bf027f314562 (patch)
tree3cc741d04d840f502b68fb30116f7ad1c6362d8a /upd8.js
parent4f8158e579a7092fcfbf8efc944f6608d85f70b6 (diff)
parser error throwing/handling bugfixes
Diffstat (limited to 'upd8.js')
-rwxr-xr-xupd8.js4
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}`);