aboutsummaryrefslogtreecommitdiff
path: root/all
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-06-01 15:07:58 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-06-01 15:07:58 -0300
commit63295f1f7fa052fabcb4d69d49203cf33a7deef0 (patch)
tree05ba23f84fc76bd9a6b44883e7527ca1afcd274e /all
parent50523b107d5bcc8069b1aec4b5b11b3fcc87da8d (diff)
downloadlua-63295f1f7fa052fabcb4d69d49203cf33a7deef0.tar.gz
lua-63295f1f7fa052fabcb4d69d49203cf33a7deef0.tar.bz2
lua-63295f1f7fa052fabcb4d69d49203cf33a7deef0.zip
Fixed two bugs in to-be-closed variables x constants
The parser were mixing compiler indices of variables with stack indices, so that when a to-be-closed variable was used inside the scope of compile-time constants (which may be optimized away), it might be closed in the wrong place. (See new tests for examples.) Besides fixing the bugs, this commit also changed comments and variable names to avoid that kind of confusion and added tests.
Diffstat (limited to 'all')
0 files changed, 0 insertions, 0 deletions