|
Object.setPrototypeOf(proto, parentProto) |
|
Object.setPrototypeOf(RootElement, parentConstructor) |
Hi, I read the article Writing a JavaScript Framework - The Benefits of Custom Elements. And I have been thinking about the use of Object.setPrototypeOf() which is a performance killer.
Why could you not use Object.create() ? What would be missing if you used Object.create()?
core/src/registerRoot.js
Lines 28 to 29 in 12250ef
Hi, I read the article Writing a JavaScript Framework - The Benefits of Custom Elements. And I have been thinking about the use of
Object.setPrototypeOf()which is a performance killer.Why could you not use
Object.create()? What would be missing if you usedObject.create()?