Skip to content

Commit 90f3224

Browse files
committed
Removed is standard lib test
1 parent d692b81 commit 90f3224

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

src/LuaTransformer.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4652,14 +4652,7 @@ export class LuaTransformer {
46524652

46534653
const identifierType = this.checker.getTypeAtLocation(expression);
46544654
if (identifierType.symbol && identifierType.symbol.escapedName === "globalThis") {
4655-
const isIdentifierStandardLibraryType = !tsHelper.isStandardLibraryType(
4656-
this.checker.getTypeAtLocation(expression),
4657-
undefined,
4658-
this.program
4659-
);
4660-
if (isIdentifierStandardLibraryType) {
4661-
return tstl.createIdentifier("_G", expression, this.getIdentifierSymbolId(expression));
4662-
}
4655+
return tstl.createIdentifier("_G", expression, this.getIdentifierSymbolId(expression));
46634656
}
46644657

46654658
switch (this.getIdentifierText(expression)) {

test/unit/identifiers.spec.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -841,8 +841,4 @@ describe("globalThis translation", () => {
841841

842842
expect(util.executeLua(lua)).toBe("bar");
843843
});
844-
845-
// TODO globalThis type tests for union and intersection
846844
});
847-
848-

0 commit comments

Comments
 (0)