Keep the premade normal-function property layout when creating dynamic functions with a custom [[Prototype]], but transition the shape to that prototype instead of replacing it with %Function.prototype%. Let Function subclasses and bound functions created from their instances participate in instanceof checks, and keep bound super() construction passing the derived new.target through. |
||
|---|---|---|
| .. | ||
| Function.js | ||
| Function.prototype.@@hasInstance.js | ||
| Function.prototype.apply.js | ||
| Function.prototype.bind.js | ||
| Function.prototype.call.js | ||
| Function.prototype.js | ||
| Function.prototype.toString.js | ||