Proxy polyfill based on ES3 supports IE8, Node.js, etc.
npm install es6-proxy-polyfill简体中文 | English
Proxy, supports IE6+ , Node.js, etc.
Proxy.revocable method is also supported, but only for calls to the above traps.
javascript
npm i -S es6-proxy-polyfill
`
#### Usage
1. Browser:
`html
`
2. Node.js:
`javascript
const Proxy = require('es6-proxy-polyfill');
let proxy = new Proxy({}, {});
`
#### Notice
1. For non-array object, the properties you want to proxy must be known at creation time;
1. In IE8 or below, it depends on Object.defineProperties and Object.getOwnPropertyDescriptor provided by library "object-defineproperty-ie";
1. The support of traps:
||Object|Function|Array|
|:-:|:-:|:-:|:-:|
|>=IE9|get, set|get, set, apply, construct|get, set|
|<=IE8|get, set|apply, construct|-|
#### Testing
1. Access test/browser/index.html` with browser