Build an out-of-range error node for a bad literal parameter.
(ce: ComputeEngine, expected: string, x: Expression)
| 54 | if (isNumber(x) && x.im === 0 && x.isFinite === true) return x.re; |
| 55 | return undefined; |
| 56 | } |
| 57 | |
| 58 | /** Build an out-of-range error node for a bad literal parameter. */ |
| 59 | function rangeError(ce: ComputeEngine, expected: string, x: Expression) { |
| 60 | return ce.error(['out-of-range', expected, x.toString()]); |
| 61 | } |
no test coverage detected