silentmatt / expr-eval

Mathematical expression evaluator in JavaScript
http://silentmatt.com/javascript-expression-evaluator/
MIT License
1.18k stars 239 forks source link

Handle null in parse() #228

Open wqhui opened 4 years ago

wqhui commented 4 years ago

eg:

const expr = Parser.parse('text != null')
expr.evaluate({text:null})

this will throw error