We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a53ba1d commit 53ea83dCopy full SHA for 53ea83d
src/eval.ts
@@ -19,7 +19,7 @@ const toFunction = (exp: string): Function => {
19
try {
20
return new Function(`$data`, `$el`, `with($data){${exp}}`)
21
} catch (e) {
22
- console.error(`${e.message} in expression: ${exp}`)
+ console.error(`${(e as Error).message} in expression: ${exp}`)
23
return () => {}
24
}
25
0 commit comments