Closed cpcallen closed 4 years ago
Functions marked as .illegalConstructor = true by Interpreter.prototype.createNativeFunction end up with a vestigial, non-enumerable but extant .prototype property (set to undefined). In reality, they should not have a .prototype property at all.
.illegalConstructor = true
Interpreter.prototype.createNativeFunction
.prototype
(The two situations can be distinguished by Object.getOwnPropertyDescriptor.)
Object.getOwnPropertyDescriptor
Functions marked as
.illegalConstructor = true
byInterpreter.prototype.createNativeFunction
end up with a vestigial, non-enumerable but extant.prototype
property (set to undefined). In reality, they should not have a.prototype
property at all.(The two situations can be distinguished by
Object.getOwnPropertyDescriptor
.)