Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window.addEventListener('error', xxx) 无法捕获到 devTool 中手动抛出的 error #92

Open
yubaoquan opened this issue Jul 29, 2022 · 0 comments

Comments

@yubaoquan
Copy link
Owner

window.addEventListener('error', (e) => {
  console.info('catch error in global listener2')
  console.info(e)
})

chrome 打开 devTool, 在 console 中输入 throw Error('xxx'), 不会触发上面的监听器

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant