Skip to content

Commit

Permalink
chore: error type
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 14, 2021
1 parent a53ba1d commit 53ea83d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eval.ts
Expand Up @@ -19,7 +19,7 @@ const toFunction = (exp: string): Function => {
try {
return new Function(`$data`, `$el`, `with($data){${exp}}`)
} catch (e) {
console.error(`${e.message} in expression: ${exp}`)
console.error(`${(e as Error).message} in expression: ${exp}`)
return () => {}
}
}

0 comments on commit 53ea83d

Please sign in to comment.