Is it spec-compliant to forbid setPrototypeOf(Object.prototype, foo)?

Michał Wadas michalwadas at gmail.com
Thu Feb 2 12:19:53 UTC 2017


Right now this code:

Object.setPrototypeOf(Object.prototype, Object.create(null))

throws in both Chrome and Firefox. I couldn't find any mention of
special [[SetPrototypeOf]] of %ObjectPrototype%, did I miss something?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170202/1bffcc85/attachment.html>


More information about the es-discuss mailing list