使用async/await 苹果手机没问题,安卓报错?

发布于 7 年前作者 weijin15414 次浏览最后编辑 7 年前来自 issues

我打开了es6转es5和增强编译,使用苹果手机没问题不报错,但是安卓手机遇到await就报错,trycatch捕捉到的错误信息是undefined。不是说小程序原生支持了吗。我关掉es6转es5,安卓手机也不行,再关掉增强编译就报错了

3 回复
yancui
yancui1 楼6 年前

请提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

yonghao
yonghao2 楼6 年前

User.checkMessageCode里面的代码有问题,不一定全是es6.

chengqiang
chengqiang3 楼5 年前

你的User.checkMessageCode是Promise的吗