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

用webpack-autojs编译会提示『with』关键字无法编译,是否可以修改。 #33

Closed
3 tasks done
zheng-hongchen opened this issue Nov 6, 2023 · 2 comments
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@zheng-hongchen
Copy link

在此之前...

  • 我已经搜索了现有的issues
  • 我在提问题之前至少花费了5分钟来思考和准备
  • 我正在使用最新版的NIKKE-scripts,否则请在下文中说明使用的版本

问题描述

SyntaxError: util.js: 'with' in strict mode.

| let threImg = images.threshold(grayImg, thresh, 255, options.type || "BINARY_INV");
| let ret = [];

| with (JavaImporter(

用webpack严格模式编译不通过,严格模式禁止使用『with』关键字。是否能修改下。

如何复现

  1. 前往 '...'
  2. 点击 '....'
  3. 滑动到 '....'
  4. 出现问题

相关日志

| let threImg = images.threshold(grayImg, thresh, 255, options.type || "BINARY_INV");
| let ret = [];
| with (JavaImporter(
| ^

出错截图

No response

其他内容

No response

@zheng-hongchen zheng-hongchen added the bug Something isn't working label Nov 6, 2023
@Zebartin
Copy link
Owner

我没用到webpack那个,对这方面也是一知半解,不太明白是什么回事哈

@Zebartin
Copy link
Owner

去学习了一个,比想象中有吸引力,之后重构的时候应该会用,但目前暂时是不行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants