EngineHub / EngineHub/CommandHelper

Incorrect [Using undefined variable] error on unassigned variable declarations in autoconcat (non-strict mode)

Đang mở
#1,179 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Java
Star
128
Fork
70
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

When having variable declarations in a script where that variable might never be assigned to, then an incorrect `Using undefined variable: @var` runtime error is given if that declaration is inside an autoconcat.
Example code:
```
string @var;
msg();
```

Problem:
__autoconcat__() gets the value of declaration `string @var`, causing this runtime error.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.