Currently the constructor is a declared function with .name === "constructor", and populate(constructor, newStatics, base) is not able to override that property.
The constructor should be an anonymous function expression instead, so that one can set its .name property (or not) as one sees fit.
Currently the constructor is a declared function with
.name === "constructor"
, andpopulate(constructor, newStatics, base)
is not able to override that property.The constructor should be an anonymous function expression instead, so that one can set its
.name
property (or not) as one sees fit.