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

Oriol Bugzilla oriol-bugzilla at hotmail.com
Tue Sep 6 01:20:20 UTC 2016


> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160906/56e9a241/attachment.html>


More information about the es-discuss mailing list