We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d5d2a6 commit ebcbd11Copy full SHA for ebcbd11
src/compiler/parser.ts
@@ -1660,7 +1660,7 @@ namespace Parser {
1660
IdentifierConstructor = objectAllocator.getIdentifierConstructor();
1661
PrivateIdentifierConstructor = objectAllocator.getPrivateIdentifierConstructor();
1662
SourceFileConstructor = objectAllocator.getSourceFileConstructor();
1663
- isInTsserver = !!(new NodeConstructor(0, 0, 0).constructor);
+ isInTsserver = (new NodeConstructor(0, 0, 0).constructor.name !== "Node");
1664
1665
fileName = normalizePath(_fileName);
1666
sourceText = _sourceText;
0 commit comments