A class for creating CSP-compliant evaluators of JavaScript expressions
The default JET expression evaluator cannot be used when Content Security Policy
prohibits unsafe evaluations. In order to replace the default evaluator with the JET CSP-compliant evaluator,
create and pass an instance of CspExpressionEvaluator class to the
Config.setExpressionEvaluator() method.
This method must be called before applying knockout bindings in the application for the first time.
Any extra context required for evaluating expressions can be passed to the object constructor using globalScope property.
Classes in JET are generally final and do not support subclassing. At the moment, final is not enforced. However, this will likely change in an upcoming JET release.
optional additional scope required for evaluating expressions.
The additional scope will be used to resolve the variables if they are not defined in the $data or $context.