commit | 63295f1f7fa052fabcb4d69d49203cf33a7deef0 | [log] [tgz] |
---|---|---|
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Mon Jun 01 15:07:58 2020 -0300 |
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Mon Jun 01 15:07:58 2020 -0300 |
tree | 05ba23f84fc76bd9a6b44883e7527ca1afcd274e | |
parent | 50523b107d5bcc8069b1aec4b5b11b3fcc87da8d [diff] |
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.