Ah, my bad, you’re right — they only expose the accessors on the prototype, so they’re in the clear. But yeah, there’s no requirement one way or the other (other than re: web compat) for the properties being there in sloppy mode.
> On Sep 5, 2016, at 9:20 PM, Oriol Bugzilla <[email protected]> wrote: > > > Mozilla's approach violates ECMAScript's forbidden extensions and can't be > > considered "correct" > > Why? The spec forbids adding "caller" or "arguments" in strict mode. I think > it does not enforce adding them in sloppy mode. > > Chrome seems to add them only in sloppy mode, and Firefox to never add them. > So I think both follow the spec. > > - Oriol > _______________________________________________ > es-discuss mailing list > [email protected] <mailto:[email protected]> > https://mail.mozilla.org/listinfo/es-discuss > <https://mail.mozilla.org/listinfo/es-discuss>
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

