TomFrost / Jexl

Javascript Expression Language: Powerful context-based expression parser and evaluator
MIT License
559 stars 90 forks source link

FORK and FIX Nullable values #fix133 #134

Open mrutid opened 10 months ago

mrutid commented 10 months ago

https://github.com/TomFrost/Jexl/issues/133

Fixes 133 making a fallback to null in every aritmetic operation involving a "nulable value" (null, undefined, NaN).

Test cases may be under discussion (fall back NaN, undefined to Null), but at least

● Evaluator › evaluates an arithmetic expression with null values in context

Should be considered a BUG (Returns 12 prior to fix).

Best Regards