You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Function.prototype.bind does not preserve the target's prototype #1732
Function.prototype.bind delegates to BoundFunctionCreate, whose first step reads the target's own prototype and installs it as the bound function's [[Prototype]]. Nothing in either operation mentions Function.prototype.
Here the target is a generator function, so the bound function should inherit from %GeneratorFunction.prototype% and carry its Symbol.toStringTag. The same holds for any target whose prototype is not Function.prototype.
Activity