Skip to content

Add bit and bit32 as lua keywords#1617

Merged
Perryvw merged 1 commit intoTypeScriptToLua:masterfrom
jkr:master
Feb 8, 2025
Merged

Add bit and bit32 as lua keywords#1617
Perryvw merged 1 commit intoTypeScriptToLua:masterfrom
jkr:master

Conversation

@jkr
Copy link
Contributor

@jkr jkr commented Feb 5, 2025

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 #1615

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 TypeScriptToLua#1615
@Perryvw Perryvw merged commit e6daa5f into TypeScriptToLua:master Feb 8, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parameter name can conflict with bitOp module name

2 participants