Skip to content

Add bit and bit32 as lua keywords #1617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 8, 2025
Merged

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