|
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()?