What is the specific impact of assigning __proto__ in each browser?

前端 未结 1 1991
有刺的猬
有刺的猬 2021-01-27 06:00

This is for a very specific use case. And this is all in typescript (which for this use case I think it has no impact but I mention it in case it does).

We have our main

相关标签:
1条回答
  • 2021-01-27 06:27

    And the answer is - bad in Chrome & Opera, very bad in Firefox, horribly bad in IE. We did performance testing of copy constructors vs setting the prototype.

    Details here:

    enter image description here

    0 讨论(0)
提交回复
热议问题