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.
- package/package.json +1 -1
- package/src/tokens.mjs +6 -2
package/package.json
CHANGED
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
|
-
|
|
155
|
-
|
|
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 => {
|