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

Michał Wadas michalwadas at
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: <>

More information about the es-discuss mailing list