Skip to content

Commit 473495c

Browse files
committed
allow most lua builtins as name
1 parent 2331724 commit 473495c

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "its-typescript-to-lua",
3-
"version": "1.33.2-8",
3+
"version": "1.33.2-9",
44
"description": "A generic TypeScript to Lua transpiler. Write your code in TypeScript and publish Lua!",
55
"repository": "https://github.com/TypeScriptToLua/TypeScriptToLua",
66
"homepage": "https://typescripttolua.github.io/",

src/transformation/utils/safe-names.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,25 @@ export const luaKeywords: ReadonlySet<string> = new Set([
4242
]);
4343

4444
const luaBuiltins: ReadonlySet<string> = new Set([
45-
"_G",
46-
"assert",
47-
"coroutine",
48-
"debug",
49-
"error",
50-
"ipairs",
51-
"math",
52-
"pairs",
53-
"pcall",
54-
"print",
55-
"rawget",
56-
"repeat",
57-
"require",
45+
// "_G",
46+
// "assert",
47+
// "coroutine",
48+
// "debug",
49+
// "error",
50+
// "ipairs",
51+
// "math",
52+
// "pairs",
53+
// "pcall",
54+
// "print",
55+
// "rawget",
56+
// "repeat",
57+
// "require",
5858
"self",
59-
"string",
60-
"table",
61-
"tostring",
62-
"type",
63-
"unpack",
59+
// "string",
60+
// "table",
61+
// "tostring",
62+
// "type",
63+
// "unpack",
6464
]);
6565

6666
export const isUnsafeName = (name: string, options: CompilerOptions) =>

0 commit comments

Comments
 (0)