Skip to content

Commit 5f0f599

Browse files
committed
dont prevent other (e.g builtin) string methods
1 parent 5fd2c48 commit 5f0f599

2 files changed

Lines changed: 3 additions & 3 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-7",
3+
"version": "1.33.2-8",
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/builtins/string.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ export function transformStringPrototypeCall(
154154
case "padEnd":
155155
return transformLuaLibFunction(context, LuaLibFeature.StringPadEnd, node, caller, ...params);
156156
case "toString":
157-
return; // will be handled by transformObjectPrototypeCall
157+
// return; // will be handled by transformObjectPrototypeCall
158158
default:
159-
context.diagnostics.push(unsupportedProperty(calledMethod.name, "string", expressionName));
159+
// context.diagnostics.push(unsupportedProperty(calledMethod.name, "string", expressionName));
160160
}
161161
}
162162

0 commit comments

Comments
 (0)