Chrome Typescript 调试引用错误 'this'
Chrome Typescript debugging references wrong 'this'
有时,当我在 Chrome 开发人员工具中遇到断点时,TypeScript this
实际上是 JavaScript 中的 _this
。我必须在控制台中手动输入 _this
才能查看实际使用的是什么。有没有办法来解决这个问题?
the TypeScript this is actually _this in the JavaScript
这是由于源映射中的一个错误。你可以在这里追踪它:https://github.com/Microsoft/TypeScript/issues/2859
有时,当我在 Chrome 开发人员工具中遇到断点时,TypeScript this
实际上是 JavaScript 中的 _this
。我必须在控制台中手动输入 _this
才能查看实际使用的是什么。有没有办法来解决这个问题?
the TypeScript this is actually _this in the JavaScript
这是由于源映射中的一个错误。你可以在这里追踪它:https://github.com/Microsoft/TypeScript/issues/2859