Skip to content

Commit cfd1a6e

Browse files
Bump version to 4.7.2 and LKG
1 parent 114e310 commit cfd1a6e

9 files changed

+57
-57
lines changed

lib/cancellationToken.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/tsc.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
6969
var ts;
7070
(function (ts) {
7171
ts.versionMajorMinor = "4.7";
72-
ts.version = "".concat(ts.versionMajorMinor, ".1-rc");
72+
ts.version = "4.7.2";
7373
var NativeCollections;
7474
(function (NativeCollections) {
7575
var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -48703,9 +48703,9 @@ var ts;
4870348703
t.flags & 2097152 ? getApparentTypeOfIntersectionType(t) :
4870448704
t.flags & 402653316 ? globalStringType :
4870548705
t.flags & 296 ? globalNumberType :
48706-
t.flags & 2112 ? getGlobalBigIntType(languageVersion >= 7) :
48706+
t.flags & 2112 ? getGlobalBigIntType() :
4870748707
t.flags & 528 ? globalBooleanType :
48708-
t.flags & 12288 ? getGlobalESSymbolType(languageVersion >= 2) :
48708+
t.flags & 12288 ? getGlobalESSymbolType() :
4870948709
t.flags & 67108864 ? emptyObjectType :
4871048710
t.flags & 4194304 ? keyofConstraintType :
4871148711
t.flags & 2 && !strictNullChecks ? emptyObjectType :
@@ -50103,8 +50103,8 @@ var ts;
5010350103
function getGlobalESSymbolConstructorTypeSymbol(reportErrors) {
5010450104
return deferredGlobalESSymbolConstructorTypeSymbol || (deferredGlobalESSymbolConstructorTypeSymbol = getGlobalTypeSymbol("SymbolConstructor", reportErrors));
5010550105
}
50106-
function getGlobalESSymbolType(reportErrors) {
50107-
return (deferredGlobalESSymbolType || (deferredGlobalESSymbolType = getGlobalType("Symbol", 0, reportErrors))) || emptyObjectType;
50106+
function getGlobalESSymbolType() {
50107+
return (deferredGlobalESSymbolType || (deferredGlobalESSymbolType = getGlobalType("Symbol", 0, false))) || emptyObjectType;
5010850108
}
5010950109
function getGlobalPromiseType(reportErrors) {
5011050110
return (deferredGlobalPromiseType || (deferredGlobalPromiseType = getGlobalType("Promise", 1, reportErrors))) || emptyGenericType;
@@ -50165,8 +50165,8 @@ var ts;
5016550165
deferredGlobalAwaitedSymbol || (deferredGlobalAwaitedSymbol = getGlobalTypeAliasSymbol("Awaited", 1, reportErrors) || (reportErrors ? unknownSymbol : undefined));
5016650166
return deferredGlobalAwaitedSymbol === unknownSymbol ? undefined : deferredGlobalAwaitedSymbol;
5016750167
}
50168-
function getGlobalBigIntType(reportErrors) {
50169-
return (deferredGlobalBigIntType || (deferredGlobalBigIntType = getGlobalType("BigInt", 0, reportErrors))) || emptyObjectType;
50168+
function getGlobalBigIntType() {
50169+
return (deferredGlobalBigIntType || (deferredGlobalBigIntType = getGlobalType("BigInt", 0, false))) || emptyObjectType;
5017050170
}
5017150171
function createTypeFromGenericGlobalType(genericGlobalType, typeArguments) {
5017250172
return genericGlobalType !== emptyGenericType ? createTypeReference(genericGlobalType, typeArguments) : emptyObjectType;
@@ -53872,7 +53872,7 @@ var ts;
5387253872
if ((globalStringType === source && stringType === target) ||
5387353873
(globalNumberType === source && numberType === target) ||
5387453874
(globalBooleanType === source && booleanType === target) ||
53875-
(getGlobalESSymbolType(false) === source && esSymbolType === target)) {
53875+
(getGlobalESSymbolType() === source && esSymbolType === target)) {
5387653876
reportError(ts.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible, targetType, sourceType);
5387753877
}
5387853878
}
@@ -69114,7 +69114,7 @@ var ts;
6911469114
if (ts.isIdentifier(childNode)) {
6911569115
var childSymbol = getSymbolAtLocation(childNode);
6911669116
if (childSymbol && childSymbol === testedSymbol) {
69117-
if (ts.isIdentifier(expr)) {
69117+
if (ts.isIdentifier(expr) || ts.isIdentifier(testedNode) && ts.isBinaryExpression(testedNode.parent)) {
6911869118
return true;
6911969119
}
6912069120
var testedExpression = testedNode.parent;

lib/tsserver.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ var ts;
100100
// The following is baselined as a literal template type without intervention
101101
/** The version of the TypeScript compiler release */
102102
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
103-
ts.version = "".concat(ts.versionMajorMinor, ".1-rc");
103+
ts.version = "4.7.2";
104104
/* @internal */
105105
var Comparison;
106106
(function (Comparison) {
@@ -58896,9 +58896,9 @@ var ts;
5889658896
t.flags & 2097152 /* TypeFlags.Intersection */ ? getApparentTypeOfIntersectionType(t) :
5889758897
t.flags & 402653316 /* TypeFlags.StringLike */ ? globalStringType :
5889858898
t.flags & 296 /* TypeFlags.NumberLike */ ? globalNumberType :
58899-
t.flags & 2112 /* TypeFlags.BigIntLike */ ? getGlobalBigIntType(/*reportErrors*/ languageVersion >= 7 /* ScriptTarget.ES2020 */) :
58899+
t.flags & 2112 /* TypeFlags.BigIntLike */ ? getGlobalBigIntType() :
5890058900
t.flags & 528 /* TypeFlags.BooleanLike */ ? globalBooleanType :
58901-
t.flags & 12288 /* TypeFlags.ESSymbolLike */ ? getGlobalESSymbolType(/*reportErrors*/ languageVersion >= 2 /* ScriptTarget.ES2015 */) :
58901+
t.flags & 12288 /* TypeFlags.ESSymbolLike */ ? getGlobalESSymbolType() :
5890258902
t.flags & 67108864 /* TypeFlags.NonPrimitive */ ? emptyObjectType :
5890358903
t.flags & 4194304 /* TypeFlags.Index */ ? keyofConstraintType :
5890458904
t.flags & 2 /* TypeFlags.Unknown */ && !strictNullChecks ? emptyObjectType :
@@ -60473,8 +60473,8 @@ var ts;
6047360473
function getGlobalESSymbolConstructorTypeSymbol(reportErrors) {
6047460474
return deferredGlobalESSymbolConstructorTypeSymbol || (deferredGlobalESSymbolConstructorTypeSymbol = getGlobalTypeSymbol("SymbolConstructor", reportErrors));
6047560475
}
60476-
function getGlobalESSymbolType(reportErrors) {
60477-
return (deferredGlobalESSymbolType || (deferredGlobalESSymbolType = getGlobalType("Symbol", /*arity*/ 0, reportErrors))) || emptyObjectType;
60476+
function getGlobalESSymbolType() {
60477+
return (deferredGlobalESSymbolType || (deferredGlobalESSymbolType = getGlobalType("Symbol", /*arity*/ 0, /*reportErrors*/ false))) || emptyObjectType;
6047860478
}
6047960479
function getGlobalPromiseType(reportErrors) {
6048060480
return (deferredGlobalPromiseType || (deferredGlobalPromiseType = getGlobalType("Promise", /*arity*/ 1, reportErrors))) || emptyGenericType;
@@ -60538,8 +60538,8 @@ var ts;
6053860538
deferredGlobalAwaitedSymbol || (deferredGlobalAwaitedSymbol = getGlobalTypeAliasSymbol("Awaited", /*arity*/ 1, reportErrors) || (reportErrors ? unknownSymbol : undefined));
6053960539
return deferredGlobalAwaitedSymbol === unknownSymbol ? undefined : deferredGlobalAwaitedSymbol;
6054060540
}
60541-
function getGlobalBigIntType(reportErrors) {
60542-
return (deferredGlobalBigIntType || (deferredGlobalBigIntType = getGlobalType("BigInt", /*arity*/ 0, reportErrors))) || emptyObjectType;
60541+
function getGlobalBigIntType() {
60542+
return (deferredGlobalBigIntType || (deferredGlobalBigIntType = getGlobalType("BigInt", /*arity*/ 0, /*reportErrors*/ false))) || emptyObjectType;
6054360543
}
6054460544
/**
6054560545
* Instantiates a global type that is generic with some element type, and returns that instantiation.
@@ -64691,7 +64691,7 @@ var ts;
6469164691
if ((globalStringType === source && stringType === target) ||
6469264692
(globalNumberType === source && numberType === target) ||
6469364693
(globalBooleanType === source && booleanType === target) ||
64694-
(getGlobalESSymbolType(/*reportErrors*/ false) === source && esSymbolType === target)) {
64694+
(getGlobalESSymbolType() === source && esSymbolType === target)) {
6469564695
reportError(ts.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible, targetType, sourceType);
6469664696
}
6469764697
}
@@ -82503,7 +82503,7 @@ var ts;
8250382503
var childSymbol = getSymbolAtLocation(childNode);
8250482504
if (childSymbol && childSymbol === testedSymbol) {
8250582505
// If the test was a simple identifier, the above check is sufficient
82506-
if (ts.isIdentifier(expr)) {
82506+
if (ts.isIdentifier(expr) || ts.isIdentifier(testedNode) && ts.isBinaryExpression(testedNode.parent)) {
8250782507
return true;
8250882508
}
8250982509
// Otherwise we need to ensure the symbol is called on the same target

lib/tsserverlibrary.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -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

lib/typescript.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)