Subclassing native objects: instanceof not working properly

后端 未结 1 2012
一向
一向 2021-01-01 16:32

I\'m trying to subclass the native JS Error object in CoffeeScript to get specialized error types, but i found that the instanceof does not work co

相关标签:
1条回答
  • 2021-01-01 17:29

    For better or worse, the return was added on 1.3.1 to fix #1966 (and #2111).

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