es6-proxy-polyfill icon indicating copy to clipboard operation
es6-proxy-polyfill copied to clipboard

This polyfill does not test Browser Support

Open MBurchard opened this issue 4 years ago • 11 comments

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)
	}
}

grafik

MBurchard avatar May 14 '20 12:05 MBurchard