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

使用 onUnhandledRejection 捕获 Promise 异常 #16

Closed
Amorites opened this issue Jan 9, 2020 · 2 comments
Closed

使用 onUnhandledRejection 捕获 Promise 异常 #16

Amorites opened this issue Jan 9, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Amorites
Copy link

Amorites commented Jan 9, 2020

https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onUnhandledRejection.html

微信小程序基础库2.10已经正式支持了onUnhandledRejection,我看这部分代码现在注释掉了,应该可以弄回来了

@lizhiyao lizhiyao added help wanted Extra attention is needed enhancement New feature or request and removed help wanted Extra attention is needed labels Jan 12, 2020
@lizhiyao
Copy link
Owner

lizhiyao commented Jan 12, 2020

官方文档中提到「安卓平台暂时不会派发该事件」且对基础版本库要求为「2.10.0」,感觉这个功能是一件重要但不紧急的事情。

@lizhiyao
Copy link
Owner

lizhiyao commented Feb 5, 2020

已实现 @Amorites

欢迎试用

@lizhiyao lizhiyao closed this as completed Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants