Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript Proxy support in Babel

Tags:

I'm using babelify version 6.3.0 set to stage 0. ES6 / ES7 are working great. However when I try to use Javascript's proxy functionality:

set product(product={}) {   this._product = new Proxy({}, {}) } 

I get:

ReferenceError: Can't find variable: Proxy 

Any ideas?

like image 200
Allyl Isocyanate Avatar asked Jan 26 '16 22:01

Allyl Isocyanate


1 Answers

From the Babel website:

Due to the limitations of ES5, Proxies cannot be transpiled or polyfilled. See support in various JavaScript engines.

like image 61
Mike Cluck Avatar answered Sep 28 '22 10:09

Mike Cluck