Adjusted number literals to compiler v2

This commit is contained in:
Daniel
2021-02-01 10:30:40 +01:00
parent f3f554396c
commit 24dd1164cc
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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) => {