Mirror: The magical sticky regex-based parser generator 🧙
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix typo in newOpts utility in codegen.js

+3 -3
+3 -3
src/codegen.js
··· 12 12 const newOpts = (prev, next) => ({ 13 13 index: next.index != null ? next.index : prev.index, 14 14 length: next.length != null ? next.length : prev.length, 15 - onAbort: onAbort.length != null ? onAbort.length : onAbort.length, 16 - abort: abort.length != null ? abort.length : abort.length, 17 - capturing: capturing.length != null ? capturing.length : capturing.length, 15 + onAbort: next.onAbort != null ? next.onAbort : prev.onAbort, 16 + abort: next.abort != null ? next.abort : prev.abort, 17 + capturing: next.capturing != null ? next.capturing : prev.capturing, 18 18 }); 19 19 20 20 const assignIndex = (depth) =>