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

0.9.0版在_G下赋值的全局变量,引用时如果省略_G前缀,会报undefined-global错误 #189

Closed
lwu309 opened this issue Jan 11, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@lwu309
Copy link

lwu309 commented Jan 11, 2025

这个报错是0.9.0版新出现的,0.8.20版没有这个问题。只有显式加上_G.前缀才能避免这个错误。

重新修改已有代码加上前缀实在不现实,能不能考虑修复这个问题?谢谢。

@CppCXY CppCXY added the bug Something isn't working label Jan 11, 2025
@toxmc
Copy link

toxmc commented Jan 13, 2025

我就说怎么突然变标红了,ngx关键字也是红了
image

@CppCXY
Copy link
Member

CppCXY commented Jan 13, 2025

最开始的时候我就知道有这个问题, 但是当时被所有权困住了,就没有去搞, 后面挑了个周五就发布了

@CppCXY
Copy link
Member

CppCXY commented Jan 15, 2025

等推送

@CppCXY CppCXY closed this as completed Jan 15, 2025
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

3 participants