pacc 8.11.5 → 8.11.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/tokens.mjs +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacc",
3
- "version": "8.11.5",
3
+ "version": "8.11.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
package/src/tokens.mjs CHANGED
@@ -151,8 +151,12 @@ export /** @type {Token} */ const OPEN_ROUND = createToken(
151
151
  (parser, left) => {
152
152
  const args = parser.expression(0);
153
153
  parser.expect(CLOSE_ROUND);
154
- left.args = Array.isArray(args) ? args : [args];
155
- left.eval = functionEval;
154
+
155
+ // TODO why is there a right side ?
156
+ const node = left.right || left;
157
+ node.eval = functionEval;
158
+ node.args = Array.isArray(args) ? args : [args];
159
+
156
160
  return left;
157
161
  },
158
162
  parser => {