[ES Harmony Proxies] bugs in no-op forwarding proxy example

# David Bruant (15 years ago)

In getOwnPropertyDescriptor and getPropertyDescriptor traps of the no-op forwarding proxy example, the "desc.configurable = true" instruction fails if desc is undefined (which happens when the property is undefined). A "if(typeof(desc) === 'object')" beforehand saves the situation.

Just for the record, on the only implementation I know (FF4b10), there is a bug if either of these method returns undefined : bugzilla.mozilla.org/show_bug.cgi?id=582967

# Tom Van Cutsem (15 years ago)

Thanks for noticing. I had already fixed the same code in the "default forwarding handler" wiki page, but forgot about the example code on the proxies page. It's fixed now.

2011/1/26 David Bruant <bruant at enseirb-matmeca.fr>