GoogleChrome / proxy-polyfill

Proxy object polyfill
Apache License 2.0
1.14k stars 175 forks source link

Can not set prototype properties in IE10 #14

Open madmed88 opened 8 years ago

madmed88 commented 8 years ago

Since IE10 does not support setPrototypeOf, prototype properties are copied and arenot writable. As a workaround I changed Object.defineProperty(proxy, k, {get: getter.bind(target, k)}); to Object.defineProperty(proxy, k, {get: getter.bind(target, k)}, set: setter.bind(target, k));

any reason why you don't allow setting prototype properties?

samthor commented 4 years ago

This bug is nearly four years old. I don't have a practical way of testing on IE10.

If this is important to anyone, please send us a PR :)