Bug: Reflect.ownKeys(function() {}) differs in V8 strict mode than other cases

Caitlin Potter caitpotter88 at gmail.com
Tue Sep 6 01:24:27 UTC 2016


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 <oriol-bugzilla at hotmail.com> 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
> es-discuss at mozilla.org <mailto:es-discuss at mozilla.org>
> https://mail.mozilla.org/listinfo/es-discuss <https://mail.mozilla.org/listinfo/es-discuss>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160905/21216831/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160905/21216831/attachment.sig>


More information about the es-discuss mailing list