Re: [heycam/webidl] Fix internal methods that only target platform objects w/ indexed/named props (#202)

Why is this better than the current setup?

The current setup makes it obvious that for objects without indexed or named props no magic needs to happen and no magic _can_ happen.  That makes it less likely that a spec edit will accidentally introduce magic for them.

> In addition, the common case should rely on the relevant ES Ordinary[X] method rather than a custom default behavior solution.

I'm not sure what you mean here.  If you mean that steps 3 and 4 of https://heycam.github.io/webidl/#delete should be replaced with a call to https://tc39.github.io/ecma262/#sec-ordinarydelete then it's not obvious to me that this is black-box identical, but maybe it is.  It would need to be carefully reasoned through.  Same for the other internal methods.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/202#issuecomment-255844798

Received on Monday, 24 October 2016 19:45:35 UTC