We are using a lot of ES6 proxy in our lightning application. The API version for all components is set as 39. Everything works fine.
The problem appears when we try to switch API version to 40. Suddenly every time when we construct js proxy ( like
new Proxy(...) ) it starts throwing an error:
'Proxy is not a constructor'.
From what I understand setting version as 40.0 enables (basically forces) locker service for components. Does it mean that ES6 proxy is considered to be insecure and is blocked by Locker service? Should we get rid off all the proxies from our code base? Are there any other alternatives or are we doing something wrong?