@parcel/codeframe 2.8.2 → 2.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/codeframe.js CHANGED
@@ -34555,9 +34555,9 @@ const $03b62e45aee69014$var$NO_MATCH = Symbol("nomatch");
34555
34555
  if (match.type === "begin") return doBeginMatch(match);
34556
34556
  else if (match.type === "illegal" && !ignoreIllegals) {
34557
34557
  // illegal match, we do not continue processing
34558
- /** @type {AnnotatedError} */ const err1 = new Error('Illegal lexeme "' + lexeme + '" for mode "' + (top.className || "<unnamed>") + '"');
34559
- err1.mode = top;
34560
- throw err1;
34558
+ /** @type {AnnotatedError} */ const err = new Error('Illegal lexeme "' + lexeme + '" for mode "' + (top.className || "<unnamed>") + '"');
34559
+ err.mode = top;
34560
+ throw err;
34561
34561
  } else if (match.type === "end") {
34562
34562
  const processed = doEndMatch(match);
34563
34563
  if (processed !== $03b62e45aee69014$var$NO_MATCH) return processed;
@@ -34572,8 +34572,8 @@ const $03b62e45aee69014$var$NO_MATCH = Symbol("nomatch");
34572
34572
  // parsing) still 3x behind our index then something is very wrong
34573
34573
  // so we bail
34574
34574
  if (iterations > 100000 && iterations > match.index * 3) {
34575
- const err2 = new Error("potential infinite loop, way more iterations than matches");
34576
- throw err2;
34575
+ const err = new Error("potential infinite loop, way more iterations than matches");
34576
+ throw err;
34577
34577
  }
34578
34578
  /*
34579
34579
  Why might be find ourselves here? Only one occasion now. An end match that was