Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils/class.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function extendClassStaticProps(childClass, parentClass, excludedProps =
export function extendThis(child, childClass, parentClass, excludedProps = [], ...args) {
let props;
let obj = new parentClass.prototype.constructor(...args);
const exclude = ["constructor", ...Object.getOwnPropertyNames(childClass)];
const exclude = ["constructor", ...Object.getOwnPropertyNames(childClass.prototype)];
const seen = []; // remember most recent occurrence of prop name (like inheritance)
while (obj.__proto__) {
props = Object.getOwnPropertyNames(obj.__proto__);
Expand Down