deal with eval errors
This commit is contained in:
parent
32bdc23ea7
commit
4a4cee6ee9
5 changed files with 31 additions and 3 deletions
|
|
@ -49,7 +49,10 @@ export function evalCall(s: CallBlockState, env: DynamicEnvironment): EvalResult
|
|||
const fn = evalExpr(s.fn, env);
|
||||
const input = evalExpr(s.input, env);
|
||||
if (fn !== undefined && input !== undefined) {
|
||||
return fn(input);
|
||||
try {
|
||||
return fn(input);
|
||||
}
|
||||
catch {}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue