@@ -294,7 +294,7 @@ var ts;
294294 // The following is baselined as a literal template type without intervention
295295 /** The version of the TypeScript compiler release */
296296 // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297- ts.version = "".concat(ts.versionMajorMinor, ".1-rc") ;
297+ ts.version = "4.7.2" ;
298298 /* @internal */
299299 var Comparison;
300300 (function (Comparison) {
@@ -59090,9 +59090,9 @@ var ts;
5909059090 t.flags & 2097152 /* TypeFlags.Intersection */ ? getApparentTypeOfIntersectionType(t) :
5909159091 t.flags & 402653316 /* TypeFlags.StringLike */ ? globalStringType :
5909259092 t.flags & 296 /* TypeFlags.NumberLike */ ? globalNumberType :
59093- t.flags & 2112 /* TypeFlags.BigIntLike */ ? getGlobalBigIntType(/*reportErrors*/ languageVersion >= 7 /* ScriptTarget.ES2020 */ ) :
59093+ t.flags & 2112 /* TypeFlags.BigIntLike */ ? getGlobalBigIntType() :
5909459094 t.flags & 528 /* TypeFlags.BooleanLike */ ? globalBooleanType :
59095- t.flags & 12288 /* TypeFlags.ESSymbolLike */ ? getGlobalESSymbolType(/*reportErrors*/ languageVersion >= 2 /* ScriptTarget.ES2015 */ ) :
59095+ t.flags & 12288 /* TypeFlags.ESSymbolLike */ ? getGlobalESSymbolType() :
5909659096 t.flags & 67108864 /* TypeFlags.NonPrimitive */ ? emptyObjectType :
5909759097 t.flags & 4194304 /* TypeFlags.Index */ ? keyofConstraintType :
5909859098 t.flags & 2 /* TypeFlags.Unknown */ && !strictNullChecks ? emptyObjectType :
@@ -60667,8 +60667,8 @@ var ts;
6066760667 function getGlobalESSymbolConstructorTypeSymbol(reportErrors) {
6066860668 return deferredGlobalESSymbolConstructorTypeSymbol || (deferredGlobalESSymbolConstructorTypeSymbol = getGlobalTypeSymbol("SymbolConstructor", reportErrors));
6066960669 }
60670- function getGlobalESSymbolType(reportErrors ) {
60671- return (deferredGlobalESSymbolType || (deferredGlobalESSymbolType = getGlobalType("Symbol", /*arity*/ 0, reportErrors))) || emptyObjectType;
60670+ function getGlobalESSymbolType() {
60671+ return (deferredGlobalESSymbolType || (deferredGlobalESSymbolType = getGlobalType("Symbol", /*arity*/ 0, /* reportErrors*/ false ))) || emptyObjectType;
6067260672 }
6067360673 function getGlobalPromiseType(reportErrors) {
6067460674 return (deferredGlobalPromiseType || (deferredGlobalPromiseType = getGlobalType("Promise", /*arity*/ 1, reportErrors))) || emptyGenericType;
@@ -60732,8 +60732,8 @@ var ts;
6073260732 deferredGlobalAwaitedSymbol || (deferredGlobalAwaitedSymbol = getGlobalTypeAliasSymbol("Awaited", /*arity*/ 1, reportErrors) || (reportErrors ? unknownSymbol : undefined));
6073360733 return deferredGlobalAwaitedSymbol === unknownSymbol ? undefined : deferredGlobalAwaitedSymbol;
6073460734 }
60735- function getGlobalBigIntType(reportErrors ) {
60736- return (deferredGlobalBigIntType || (deferredGlobalBigIntType = getGlobalType("BigInt", /*arity*/ 0, reportErrors))) || emptyObjectType;
60735+ function getGlobalBigIntType() {
60736+ return (deferredGlobalBigIntType || (deferredGlobalBigIntType = getGlobalType("BigInt", /*arity*/ 0, /* reportErrors*/ false ))) || emptyObjectType;
6073760737 }
6073860738 /**
6073960739 * Instantiates a global type that is generic with some element type, and returns that instantiation.
@@ -64885,7 +64885,7 @@ var ts;
6488564885 if ((globalStringType === source && stringType === target) ||
6488664886 (globalNumberType === source && numberType === target) ||
6488764887 (globalBooleanType === source && booleanType === target) ||
64888- (getGlobalESSymbolType(/*reportErrors*/ false ) === source && esSymbolType === target)) {
64888+ (getGlobalESSymbolType() === source && esSymbolType === target)) {
6488964889 reportError(ts.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible, targetType, sourceType);
6489064890 }
6489164891 }
@@ -82697,7 +82697,7 @@ var ts;
8269782697 var childSymbol = getSymbolAtLocation(childNode);
8269882698 if (childSymbol && childSymbol === testedSymbol) {
8269982699 // If the test was a simple identifier, the above check is sufficient
82700- if (ts.isIdentifier(expr)) {
82700+ if (ts.isIdentifier(expr) || ts.isIdentifier(testedNode) && ts.isBinaryExpression(testedNode.parent) ) {
8270182701 return true;
8270282702 }
8270382703 // Otherwise we need to ensure the symbol is called on the same target
0 commit comments