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

revokedHandler defined using Proxy #36

Closed sudodoki closed 10 years ago

sudodoki commented 10 years ago

Right now reflect.js in browser w/o Proxy support will fail at https://github.com/tvcutsem/harmony-reflect/blob/master/reflect.js#L1957-L1959 with Uncaught TypeError: Cannot call method 'create' of undefined error message.

tvcutsem commented 10 years ago

Thanks. Fixed in commit https://github.com/tvcutsem/harmony-reflect/commit/d5226a138ceb6e04a69735b9f655fc2c2ca6f137 by only creating the revokedHandler on platforms that support Proxy.