在实机测试没有问题,只在开发者工具中报错,经测macOS端开发者工具也是一样情况。


worker中的代码 :


var test = function(){

console.log("timeout tick");

}

setTimeout(test,1000);


开发者工具console信息

VM32:3 Uncaught ReferenceError: Reporter is not defined

    at setTimeout (eval at self.onmessage.event (weixinworker.js:6), <anonymous>:3:10423)

    at eval (eval at self.onmessage.event (weixinworker.js:6), <anonymous>:8:1)

    at require (eval at self.onmessage.event (weixinworker.js:6), <anonymous>:3:24484)

    at o (eval at self.onmessage.event (weixinworker.js:6), <anonymous>:3:23372)

    at eval (eval at self.onmessage.event (weixinworker.js:6), <anonymous>:3:13744)

    at eval (eval at self.onmessage.event (weixinworker.js:6), <anonymous>:1:3789)

    at Array.forEach (<anonymous>)

    at Object.h (eval at self.onmessage.event (weixinworker.js:6), <anonymous>:1:3747)

    at self.onmessage.event (weixinworker.js:10)



展开全部
收起
3回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
  • Josiah3

    17人对此回答表示赞同

    我这里还是报这个做,代码类似,这个Reporter是指什么呢?

    展开
    17
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • Abigail

    16人对此回答表示赞同

    太感谢了,期待更新。

    展开
    16
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • 安守本分

    1人对此回答表示赞同

    多谢反馈,并不是setTimeout在工具中不可用,而是我们内部逻辑的报错,目前已定位到问题,我们下个版本修复一下

    展开
    1
    0回复
    发布于 6年前

    评论(0)

    收起评论

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部