tvcutsem / harmony-reflect

ES5 shim for ES6 Reflect and Proxy objects
http://www.ecma-international.org/ecma-262/6.0/#sec-reflection
Other
478 stars 48 forks source link

Does this polyfill works for chrome version 38 ? #84

Open gaganhn opened 1 year ago

gaganhn commented 1 year ago

I see there are errors for reflect.js in my console.

Screenshot 2023-07-21 at 3 41 10 PM
tvcutsem commented 1 year ago

Yes, this polyfill should work on chrome v38, but as noted in the readme:

Chrome (>= v19 && <= v37) used to support proxies behind a flag (chrome://flags/#enable-javascript-harmony) but Chrome v38 removed the Proxy constructor. As a result, this library cannot patch the harmony-era Proxy object on Chrome v38 or above.

Can you post more diagnostics on the error (including a full stack trace)? Does the error appear only on Chrome v38 or also on newer/latest releases?

tvcutsem commented 1 year ago

To clarify, this library cannot properly emulate ES6+ Proxy objects on Chrome v38, but can support the Reflect API.

gaganhn commented 1 year ago

Oh, I mainly wanted this polyfill for Proxy.

Thanks for reply!