es6-proxy-polyfill
es6-proxy-polyfill copied to clipboard
This polyfill does not test Browser Support
My expectation was that the polyfill would only be used if there is no proxy support in the browser.
Unfortunately this is not the case and a simple test in a Vue.js application, which unfortunately also has to support IE 11, immediately led to a bug in Firefox 76.
By the way, it does not work in IE 11 either...
import 'es6-proxy-polyfill'
export default {
name: 'App',
components: {},
data: function() {
return {
myprop: ''
};
},
created() {
const test = new Proxy({}, {
set: (target, prop, value) => {
console.log(target, prop, value)
target[prop] = value
return true
}
})
test.name = 'Hans'
console.log(test.name)
}
}