remove force inheriting of symbols from t.inherits
This commit is contained in:
parent
b6807021a8
commit
8280e18ed4
@ -391,12 +391,6 @@ export function inherits(child: Object, parent: Object): Object {
|
||||
}
|
||||
}
|
||||
|
||||
// force inherit symbols
|
||||
let parentSymbols: Array<Symbol> = Object.getOwnPropertyNames(parent);
|
||||
for (let sym of parentSymbols) {
|
||||
child[sym] = parent[sym];
|
||||
}
|
||||
|
||||
// force inherit "private" properties
|
||||
for (let key in parent) {
|
||||
if (key[0] === "_") child[key] = parent[key];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user