Skip to content

Commit

Permalink
fix critical error when cannot parse defineFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed May 30, 2024
1 parent 093803e commit 49e2c75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/function-def.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class FunctionDef extends Top {
let msg = this.id + ': '+ e.message + ` in "${q.math.toString()}"`;
logger && logger.error(msg, {type: 'ValidationError'});
this.errored = true;
return; // BRAKE
}

// check that identifiers in `math` correspond to `arguments`
Expand Down

0 comments on commit 49e2c75

Please sign in to comment.