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

LLSE在启动nodejs插件时会提供一个不可用的__filename全局对象 #993

Closed
harry-xi opened this issue Jan 8, 2023 · 1 comment
Labels
bug Related to software malfunction priority: high Needs prompt action

Comments

@harry-xi
Copy link
Contributor

harry-xi commented Jan 8, 2023

异常模块

ScriptEngine (脚本引擎)

操作系统

Windows 10

LiteLoader 版本

2.9.0

BDS 版本

1.19.51

发生了什么?

image
llse的nodejs在启动时传入的不正常的__filename被使用可能引发nodejs插件运行异常

在此处的LLSE源码中yq标记过一个有关TODO
image

如果能解决相关问题,那是再好不过的了

如果不能,希望在文档等适当位置做出说明

复现此问题的步骤

上述截图中的报错是在一次创建nodejs的worker_threads模块的Worker类时发生的
有关代码:
new Worker(__filename, { workerData: { start: myStart, range }})

有关的日志/输出

见“发生了什么?”

插件列表

无关
@ShrBox ShrBox added bug Related to software malfunction module: script engine priority: high Needs prompt action labels Jan 8, 2023
@ShrBox ShrBox added this to the 2.9.2 milestone Jan 8, 2023
@ShrBox ShrBox modified the milestones: 2.9.2, 2.10.0 Jan 18, 2023
@futrime futrime modified the milestones: 2.10.0, 3.0.0 Feb 10, 2023
@RimuruChan RimuruChan removed this from the 3.0.0 milestone Mar 27, 2023
@harry-xi
Copy link
Contributor Author

fixed in #1235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Related to software malfunction priority: high Needs prompt action
Development

No branches or pull requests

4 participants