You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/unit/__snapshots__/identifiers.spec.ts.snap
+180Lines changed: 180 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -247,3 +247,183 @@ exports[`undeclared identifier must be a valid lua identifier (object literal sh
247
247
exports[`undeclared identifier must be a valid lua identifier (object literal shorthand) ("ɥɣɎɌͼƛಠ"): code 1`] =`"foo = {[\\"ɥɣɎɌͼƛಠ\\"] =_____265_263_24E_24C_37C_19B_CA0}"`;
248
248
249
249
exports[`undeclared identifier must be a valid lua identifier (object literal shorthand) ("ɥɣɎɌͼƛಠ"): diagnostics 1`] =`"main.ts(2,27): error TSTL: Invalid ambient identifier name 'ɥɣɎɌͼƛಠ'. Ambient identifiers must be valid lua identifiers."`;
250
+
251
+
exports[`unicode identifiers in supporting environments (luajit) destructuring property name ("_̀ः٠‿") 1`] =`
252
+
"local ____exports = {}
253
+
function ____exports.__main(self)
254
+
local ____temp_0 = {foo= \\"foobar\\"}
255
+
local _̀ः٠‿ = ____temp_0.foo
256
+
return _̀ः٠‿
257
+
end
258
+
return ____exports"
259
+
`;
260
+
261
+
exports[`unicode identifiers in supporting environments (luajit) destructuring property name ("ɥɣɎɌͼƛಠ") 1`] =`
262
+
"local ____exports = {}
263
+
function ____exports.__main(self)
264
+
local ____temp_0 = {foo= \\"foobar\\"}
265
+
local ɥɣɎɌͼƛಠ = ____temp_0.foo
266
+
return ɥɣɎɌͼƛಠ
267
+
end
268
+
return ____exports"
269
+
`;
270
+
271
+
exports[`unicode identifiers in supporting environments (luajit) destructuring property name ("𝛼𝛽𝚫") 1`] =`
0 commit comments