mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
make globalThis have an empty declarations (#34561)
Fixes #33860 by making it an error. This is an improvement, but sounds like it would be better to make it work later.
This commit is contained in:
@@ -319,6 +319,7 @@ namespace ts {
|
||||
|
||||
const globalThisSymbol = createSymbol(SymbolFlags.Module, "globalThis" as __String, CheckFlags.Readonly);
|
||||
globalThisSymbol.exports = globals;
|
||||
globalThisSymbol.declarations = [];
|
||||
globals.set(globalThisSymbol.escapedName, globalThisSymbol);
|
||||
|
||||
const argumentsSymbol = createSymbol(SymbolFlags.Property, "arguments" as __String);
|
||||
|
||||
Reference in New Issue
Block a user