Re: [heycam/webidl] Remove [LegacyArrayClass] (#291)

In other words, I think it's better to lean towards the `maplike` solution, where copycat versions of the Array methods get auto-defined for your interface that give the right behavior. WebIDL can update itself as JS adds new methods to Array.

This means that adding to Array.prototype doesn't make them work on your object, but that's already how `maplike<>` and `setlike<>` work, so we're at least consistent. (And when JS finally defines the `::` operator, fake additions to Array will work just fine on arraylikes as well.)

-- 
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/291#issuecomment-283486642

Received on Wednesday, 1 March 2017 22:08:45 UTC