Cannot declare a const variable twice, iOS 10 bug

creator 2.1.3 iOS 10 会出现 Cannot declare a const variable twice 错误,目前已知这是ios10的bug,打包混淆后会出现
function y(e, t = !1) {
const i = (t = t || !1) ? “?”: “”,
o = [];
for (const t in e) if (e.hasOwnProperty(t)) {
const i = e[t];
if (!i) continue;
i.constructor === Array ? i.forEach(e = >{
o.push(encodeURIComponent(t) + “[]=” + encodeURIComponent(e));
}) : o.push(encodeURIComponent(t) + “=” + encodeURIComponent(i));
}
return o.length ? i + o.join("&") : “”;
}

const t 和外部的t冲突,所以报错。 这个问题要怎么解决,打包过程是引擎做的,生成的文件也加密了没法修改。

是不是自己手动编译过引擎啊

可参考一下这个帖子
https://forum.cocos.com/t/2-0-10-ios10-1/80620

或者
https://github.com/cocos-creator/engine/issues/5144

1赞

没有改过引擎,问题解决了。 感谢感谢