Open
Description
按照本仓库中的数据,从基础库 2.11 开始就可以使用 Generator 函数。
在我们的项目中,我们使用 @babel/preset-env
和 @babel/plugin-transform-runtime
进行编译,将 target 设置为 iOS >= 10
,同时关闭了开发者工具自带的 ES6 转 ES5
和 增强编译
,理论上是可以使用 Generator 的。
但我们在 iOS 10 真机验证过程中发现,Generator 会产生以下异常:
在开放社区中也有类似的反馈:
- https://developers.weixin.qq.com/community/develop/doc/00080c83528300fe011a6ed2051400?highLine=generator
- https://developers.weixin.qq.com/community/develop/doc/0000403a7345881bbd57bbfa856000?highLine=Generator
请问以上异常是否与小程序的 JS 执行环境有关呢?
Metadata
Metadata
Assignees
Labels
No labels