luvies / node-business-rules

A JS-expression-based rules engine
MIT License
2 stars 0 forks source link

Use 'high strict mode' in expression evaluation #9

Closed luvies closed 5 years ago

luvies commented 5 years ago

Since the rule engine is supposed to be as correct as possible, and it might be configured by someone who doesn't know the idiosyncrasies JS (even if they might have some programming knowledge), I think the evaluator (at least by default, if we want to make it configurable) should use a 'high strict mode', which would differ in the following:

I think there might be more things to restrict, but these are the primary ones.

luvies commented 5 years ago

This mode is now the only way expressions are evaluated