3

为什么在 JS 函数 / 类中以属性赋值形式无法覆写 Symbol.hasInstance ?

 1 year ago
source link: https://www.zhihu.com/question/460327673/answer/1895884715
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

为什么在 JS 函数 / 类中以属性赋值形式无法覆写 Symbol.hasInstance ?

本例默认使用最小环境,且 Symbol.hasInstance 没有被以任何形式事先进行覆写,仍是初始 [native code]。 覆写失败意味着 …
8
343

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK