monitorFE icon indicating copy to clipboard operation
monitorFE copied to clipboard

SDK 无法捕获 TypeError 错误

Open MriLiuJY opened this issue 5 years ago • 0 comments

SDK 无法监控 TypeError 错误

使用 addEventListener 在 window 上无法监听到 TypeError 类型的错误。

1.无法捕捉到 JS 语法错误。

var test =document.getElementsByClassName("test")[0]; // test = undefined
test..onclick = function () {}; // Uncaught TypeError: Cannot set property 'onclick' of undefined

MriLiuJY avatar Jul 16 '19 01:07 MriLiuJY