File tree Expand file tree Collapse file tree 8 files changed +8
-8
lines changed
src/expression/definitions
test/integration/expression/tests Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export class IndexOf implements Expression {
3131
3232 static parse ( args : ReadonlyArray < unknown > , context : ParsingContext ) : Expression {
3333 if ( args . length <= 2 || args . length >= 5 ) {
34- return context . error ( `Expected 3 or 4 arguments, but found ${ args . length - 1 } instead.` ) as null ;
34+ return context . error ( `Expected 2 or 3 arguments, but found ${ args . length - 1 } instead.` ) as null ;
3535 }
3636
3737 const needle = context . parse ( args [ 1 ] , 1 , ValueType ) ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export class Slice implements Expression {
3131
3232 static parse ( args : ReadonlyArray < unknown > , context : ParsingContext ) : Expression {
3333 if ( args . length <= 2 || args . length >= 5 ) {
34- return context . error ( `Expected 3 or 4 arguments, but found ${ args . length - 1 } instead.` ) as null ;
34+ return context . error ( `Expected 2 or 3 arguments, but found ${ args . length - 1 } instead.` ) as null ;
3535 }
3636
3737 const input = context . parse ( args [ 1 ] , 1 , ValueType ) ;
Original file line number Diff line number Diff line change 99 "errors" : [
1010 {
1111 "key" : " " ,
12- "error" : " Expected 3 or 4 arguments, but found 1 instead."
12+ "error" : " Expected 2 or 3 arguments, but found 1 instead."
1313 }
1414 ]
1515 }
Original file line number Diff line number Diff line change 88 "errors" : [
99 {
1010 "key" : " " ,
11- "error" : " Expected 3 or 4 arguments, but found 0 instead."
11+ "error" : " Expected 2 or 3 arguments, but found 0 instead."
1212 }
1313 ]
1414 }
Original file line number Diff line number Diff line change 1212 "errors" : [
1313 {
1414 "key" : " " ,
15- "error" : " Expected 3 or 4 arguments, but found 4 instead."
15+ "error" : " Expected 2 or 3 arguments, but found 4 instead."
1616 }
1717 ]
1818 }
Original file line number Diff line number Diff line change 88 "errors" : [
99 {
1010 "key" : " " ,
11- "error" : " Expected 3 or 4 arguments, but found 0 instead."
11+ "error" : " Expected 2 or 3 arguments, but found 0 instead."
1212 }
1313 ]
1414 }
Original file line number Diff line number Diff line change 99 "errors" : [
1010 {
1111 "key" : " " ,
12- "error" : " Expected 3 or 4 arguments, but found 1 instead."
12+ "error" : " Expected 2 or 3 arguments, but found 1 instead."
1313 }
1414 ]
1515 }
Original file line number Diff line number Diff line change 1212 "errors" : [
1313 {
1414 "key" : " " ,
15- "error" : " Expected 3 or 4 arguments, but found 4 instead."
15+ "error" : " Expected 2 or 3 arguments, but found 4 instead."
1616 }
1717 ]
1818 }
You can’t perform that action at this time.
0 commit comments