Adjusted number literals to compiler v2
This commit is contained in:
@@ -133,7 +133,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
operand "an operand"
|
operand "an operand"
|
||||||
= val:number {return {val}}
|
= val:number {return Number.isSafeInteger(val) ? {val} : { val:String(val), literal:'number' }}
|
||||||
/ val:string {return {val}}
|
/ val:string {return {val}}
|
||||||
/ function
|
/ function
|
||||||
/ ref
|
/ ref
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ describe("$filter", () => {
|
|||||||
const types = {
|
const types = {
|
||||||
strings: "'some string'",
|
strings: "'some string'",
|
||||||
integers: 11,
|
integers: 11,
|
||||||
// decimals: 0.99, //> REVISIT: wait for compiler v2.0.4 ?
|
decimals: 0.99,
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
it.each(Object.keys(types))("should support expressions with %s", (t) => {
|
it.each(Object.keys(types))("should support expressions with %s", (t) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user