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 5 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

For non-array object, the properties you want to proxy must be known at creation time

ambit-tsai avatar May 18 '20 07:05 ambit-tsai

proxy-issues-5

ambit-tsai avatar May 18 '20 08:05 ambit-tsai

From the error message, it seems that packaging causes. Can you show me the packed file?

ambit-tsai avatar May 18 '20 08:05 ambit-tsai

same error

guanyue-leo avatar Aug 11 '20 06:08 guanyue-leo

same error

The code is being refactored. You can try to import the polyfill as <script> in HTML.

ambit-tsai avatar Aug 11 '20 07:08 ambit-tsai

same error

The code is being refactored. You can try to import the polyfill as <script> in HTML.

Do you have CDN address ?

guanyue-leo avatar Aug 11 '20 07:08 guanyue-leo

same error

The code is being refactored. You can try to import the polyfill as <script> in HTML.

Do you have CDN address ?

No

ambit-tsai avatar Aug 11 '20 07:08 ambit-tsai

same error

The code is being refactored. You can try to import the polyfill as <script> in HTML.

Do you have CDN address ?

No

Thanks anyway

guanyue-leo avatar Aug 11 '20 07:08 guanyue-leo

想问下作者能否在Vue3项目里面使用这个polyfill去兼容IE11浏览器?

luvletterldl avatar Jun 04 '21 05:06 luvletterldl

May I ask, can I use this polyfill in the Vue3 project to be compatible with IE11 and chrome browsers lower than v49?

bullub avatar Jan 27 '22 03:01 bullub

May I ask, can I use this polyfill in the Vue3 project to be compatible with IE11 and chrome browsers lower than v49?

I also wanna know this

BenHerbst avatar Jan 26 '24 19:01 BenHerbst