clarity-pattern-parser 10.2.11 → 10.2.12

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/dist/index.js CHANGED
@@ -2945,7 +2945,7 @@ class ExpressionPattern {
2945
2945
  }
2946
2946
  else if (lastBinaryNode != null && lastUnaryNode != null && delimiterNode != null) {
2947
2947
  const precedence = this._precedenceMap[name];
2948
- const lastPrecendece = lastBinaryNode == null ? 0 : this._precedenceMap[lastBinaryNode.name] || -1;
2948
+ const lastPrecendece = lastBinaryNode == null ? 0 : this._precedenceMap[lastBinaryNode.name] == null ? -1 : this._precedenceMap[lastBinaryNode.name];
2949
2949
  const association = this._binaryAssociation[i];
2950
2950
  if (precedence === lastPrecendece && association === Association.right) {
2951
2951
  const node = createNode(name, [lastUnaryNode, delimiterNode]);