We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta content="telephone=no" name="format-detection" /> <meta content="yes" name="apple-mobile-web-app-capable" /> <meta content="default" name="apple-mobile-web-app-status-bar-style"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> <title></title> </head> <body> <script src="//cdn.jsdelivr.net/eruda/1.2.2/eruda.min.js"></script> <script>eruda.init();</script> <script> new Promise(function(resolve, reject){ resolve(); }).then(function(res){ var a = res.a; }) </script> </body> </html>
浏览器可以捕捉到错误:
(index):18 Uncaught (in promise) TypeError: Cannot read property 'a' of undefined at (index):18 at <anonymous>
The text was updated successfully, but these errors were encountered:
Fix: Uncaught promise error #29
7eaf017
试下最新的1.2.4版
Sorry, something went wrong.
如果是非原生的Promise呢?
Promise
No branches or pull requests
浏览器可以捕捉到错误:
The text was updated successfully, but these errors were encountered: