2011/10/11 Mark S. Miller <[email protected]>

> On Tue, Oct 11, 2011 at 11:43 AM, David Bruant <[email protected]>wrote:
>
>> It gives me an idea for a proxy library which would be to pass a custom
>> field in a data descriptor indicating the type. The proxy would enforce the
>> type under the hood and either coerce silently or throw if the type is
>> incorrect.
>
>
>
> That's a cool idea, and a good way to experiment with possible future (post
> ES6) direct representation of type-constrained (or guard constrained)
> properties.
>

Indeed, and another argument in favor of copying over non-standard property
attributes to normalized property descriptors crossing the defineProperty /
getOwnPropertyDescriptor trap boundaries.

Cheers,
Tom
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to