archives

« Bugzilla Issues Index

#4200 — Missing item in Annex E: in ES6 bound functions have the [[Prototype]] of the original function.


A missing item in Annex E:
9.4.1.3 BoundFunctionCreate (used only in 19.2.3.2 Function.prototype.bind)

In ES6, the bound function gets the [[Prototype]] of the original function.
In ES5, it uses the default prototype (Function.prototype).

(However, since all functions in ES5 had Function.prototype as their [[Prototype]], it made a difference only if the user mutated it manually after creation.)


fixed in rev37 editor's draft


In Rev37