Closed stonechoe closed 4 months ago
From #1324:
You are right, it's a performance optimization. Without this optimization, some methods worked unacceptably slow. However, now most methods where it's used are available in most engines, and
Proxy
is enough popular. I will think make it sense to accept it or not.
Following code behaves differently depending on whether the native version is loaded, or if the polyfill is required and loaded:
It throws with the polyfill, while it doesn't with the native implementation. Although it is unusual to implement proxy to throw an exception, but even without throwing, it can still introduce silent bugs due to side effects.