Commit 4c1bb2c
committed
Add
If code uses bitwise operations, it will import `bit32` (for lua 5.2
target) or `bit` (for luajit target). Add these to the keywords list
in safe-names.ts to make sure that they are not overwritten by a
variable with the same name.
Closes #1615bit and bit32 as lua keywords1 parent 04f2ceb commit 4c1bb2c
File tree
2 files changed
+11
-0
lines changed- src/transformation/utils
- test/unit
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
580 | 589 | | |
581 | 590 | | |
582 | 591 | | |
| |||
0 commit comments