I started working to make some of my lightning components compliant with
LockerService announced recently by Salesforce.
One of my Lightning Components (already in production for some orgs) rely on the use of
new Function(). I use them to interpret a string expression. So basically I'm evaluating expression like:
eval("'something' == 'something else'"); and I expect to receive
When I'm running analysis tool I'm getting following errors:
no-new-func The Function constructor is eval no-eval eval can be harmful
And here is the question. Would there be any way to get around it without writting whole expression evaluator? Or it means that starting Winter 17' - these components will stop working?