tvcutsem/harmony-reflect

Proxy not patched by shim when already defined as a function

tvcutsem opened this issue · 1 comments

Previously this shim would not patch up Proxy if it was already defined as a function (i.e. typeof Proxy === "function"). The rationale was that if Proxy is already defined as a function, the platform supports direct proxies and patching Proxy is not necessary.

Current firefox versions (FF 26+) do implement Proxy as a function and do support the direct proxies API, but various bugs remain so that patching Proxy is still valuable.

Commit ab5ca4c updates the library to always patch the global Proxy object if it is available, regardless of whether it is a function or not.

Available in npm release 0.0.12.