Skip to content

Feature: Add support for spread operator #128

Feature: Add support for spread operator

Feature: Add support for spread operator #128

Triggered via pull request August 16, 2024 06:47
Status Failure
Total duration 25s
Artifacts

ci.yaml

on: pull_request
Matrix: Test
Fit to window
Zoom out
Zoom in

Annotations

4 errors
tests/Expressions/jsfmt.spec.js > Expressions > should handle operators: src/melody/melody-parser/TokenStream.js#L129
Error: ERROR: Invalid map key 32 | <twig:Component {{ ...vars }} /> 33 | {% set numbers = [1, 2, ...moreNumbers] %} > 34 | {% set ratings = {'foo': 10, 'bar': 5, ...moreRatings} %} | ^ 35 | 36 | {{ a is divisible by(b) }} 37 | {{ a is not divisible by(b) }} Key must be a string, symbol or a number but was ... ❯ TokenStream.error src/melody/melody-parser/TokenStream.js:129:24 ❯ Parser.error src/melody/melody-parser/Parser.js:452:21 ❯ Parser.matchMap src/melody/melody-parser/Parser.js:776:22 ❯ Parser.matchPrimaryExpression src/melody/melody-parser/Parser.js:628:33 ❯ Parser.getPrimary src/melody/melody-parser/Parser.js:582:21 ❯ Parser.matchExpression src/melody/melody-parser/Parser.js:523:25 ❯ Object.parse src/melody/melody-extension-core/parser/set.js:44:36 ❯ Parser.matchTag src/melody/melody-parser/Parser.js:494:31 ❯ Parser.parse src/melody/melody-parser/Parser.js:173:32 ❯ Object.parse src/parser.js:82:24
Test (18)
Process completed with exit code 1.
tests/Expressions/jsfmt.spec.js > Expressions > should handle operators: src/melody/melody-parser/TokenStream.js#L129
Error: ERROR: Invalid map key 32 | <twig:Component {{ ...vars }} /> 33 | {% set numbers = [1, 2, ...moreNumbers] %} > 34 | {% set ratings = {'foo': 10, 'bar': 5, ...moreRatings} %} | ^ 35 | 36 | {{ a is divisible by(b) }} 37 | {{ a is not divisible by(b) }} Key must be a string, symbol or a number but was ... ❯ TokenStream.error src/melody/melody-parser/TokenStream.js:129:24 ❯ Parser.error src/melody/melody-parser/Parser.js:452:21 ❯ Parser.matchMap src/melody/melody-parser/Parser.js:776:22 ❯ Parser.matchPrimaryExpression src/melody/melody-parser/Parser.js:628:33 ❯ Parser.getPrimary src/melody/melody-parser/Parser.js:582:21 ❯ Parser.matchExpression src/melody/melody-parser/Parser.js:523:25 ❯ Object.parse src/melody/melody-extension-core/parser/set.js:44:36 ❯ Parser.matchTag src/melody/melody-parser/Parser.js:494:31 ❯ Parser.parse src/melody/melody-parser/Parser.js:173:32 ❯ Object.parse src/parser.js:82:24
Test (20)
Process completed with exit code 1.