Skip to content

Commit 2bed482

Browse files
Bump version to 4.6.3 and LKG
1 parent cfdef9d commit 2bed482

File tree

9 files changed

+155
-67
lines changed

9 files changed

+155
-67
lines changed

lib/lib.es2022.object.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ and limitations under the License.
1818
/// <reference no-default-lib="true"/>
1919

2020

21-
interface Object {
21+
interface ObjectConstructor {
2222
/**
2323
* Determines whether an object has a property with the specified name.
2424
* @param o An object.

lib/tsc.js

Lines changed: 2 additions & 4 deletions
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.6";
72-
ts.version = "4.6.2";
72+
ts.version = "4.6.3";
7373
var NativeCollections;
7474
(function (NativeCollections) {
7575
var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -25262,9 +25262,7 @@ var ts;
2526225262
return;
2526325263
}
2526425264
if (initializer) {
25265-
if (token() === 18) {
25266-
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26));
25267-
}
25265+
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26));
2526825266
return;
2526925267
}
2527025268
parseErrorForMissingSemicolonAfter(name);

lib/tsserver.js

Lines changed: 37 additions & 12 deletions
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 = "4.6.2";
103+
ts.version = "4.6.3";
104104
/* @internal */
105105
var Comparison;
106106
(function (Comparison) {
@@ -31354,18 +31354,8 @@ var ts;
3135431354
if (tryParseSemicolon()) {
3135531355
return;
3135631356
}
31357-
// If an initializer was parsed but there is still an error in finding the next semicolon,
31358-
// we generally know there was an error already reported in the initializer...
31359-
// class Example { a = new Map([), ) }
31360-
// ~
3136131357
if (initializer) {
31362-
// ...unless we've found the start of a block after a property declaration, in which
31363-
// case we can know that regardless of the initializer we should complain on the block.
31364-
// class Example { a = 0 {} }
31365-
// ~
31366-
if (token() === 18 /* OpenBraceToken */) {
31367-
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
31368-
}
31358+
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
3136931359
return;
3137031360
}
3137131361
parseErrorForMissingSemicolonAfter(name);
@@ -140014,6 +140004,41 @@ var ts;
140014140004
if (ts.scanner.getToken() === 1 /* EndOfFileToken */) {
140015140005
break;
140016140006
}
140007+
if (ts.scanner.getToken() === 15 /* TemplateHead */) {
140008+
var stack = [ts.scanner.getToken()];
140009+
var token = ts.scanner.scan();
140010+
loop: while (ts.length(stack)) {
140011+
switch (token) {
140012+
case 1 /* EndOfFileToken */:
140013+
break loop;
140014+
case 100 /* ImportKeyword */:
140015+
tryConsumeImport();
140016+
break;
140017+
case 15 /* TemplateHead */:
140018+
stack.push(token);
140019+
break;
140020+
case 18 /* OpenBraceToken */:
140021+
if (ts.length(stack)) {
140022+
stack.push(token);
140023+
}
140024+
break;
140025+
case 19 /* CloseBraceToken */:
140026+
if (ts.length(stack)) {
140027+
if (ts.lastOrUndefined(stack) === 15 /* TemplateHead */) {
140028+
if (ts.scanner.reScanTemplateToken(/* isTaggedTemplate */ false) === 17 /* TemplateTail */) {
140029+
stack.pop();
140030+
}
140031+
}
140032+
else {
140033+
stack.pop();
140034+
}
140035+
}
140036+
break;
140037+
}
140038+
token = ts.scanner.scan();
140039+
}
140040+
nextToken();
140041+
}
140017140042
// check if at least one of alternative have moved scanner forward
140018140043
if (tryConsumeDeclare() ||
140019140044
tryConsumeImport() ||

lib/tsserverlibrary.js

Lines changed: 37 additions & 12 deletions
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 = "4.6.2";
297+
ts.version = "4.6.3";
298298
/* @internal */
299299
var Comparison;
300300
(function (Comparison) {
@@ -31548,18 +31548,8 @@ var ts;
3154831548
if (tryParseSemicolon()) {
3154931549
return;
3155031550
}
31551-
// If an initializer was parsed but there is still an error in finding the next semicolon,
31552-
// we generally know there was an error already reported in the initializer...
31553-
// class Example { a = new Map([), ) }
31554-
// ~
3155531551
if (initializer) {
31556-
// ...unless we've found the start of a block after a property declaration, in which
31557-
// case we can know that regardless of the initializer we should complain on the block.
31558-
// class Example { a = 0 {} }
31559-
// ~
31560-
if (token() === 18 /* OpenBraceToken */) {
31561-
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
31562-
}
31552+
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
3156331553
return;
3156431554
}
3156531555
parseErrorForMissingSemicolonAfter(name);
@@ -140625,6 +140615,41 @@ var ts;
140625140615
if (ts.scanner.getToken() === 1 /* EndOfFileToken */) {
140626140616
break;
140627140617
}
140618+
if (ts.scanner.getToken() === 15 /* TemplateHead */) {
140619+
var stack = [ts.scanner.getToken()];
140620+
var token = ts.scanner.scan();
140621+
loop: while (ts.length(stack)) {
140622+
switch (token) {
140623+
case 1 /* EndOfFileToken */:
140624+
break loop;
140625+
case 100 /* ImportKeyword */:
140626+
tryConsumeImport();
140627+
break;
140628+
case 15 /* TemplateHead */:
140629+
stack.push(token);
140630+
break;
140631+
case 18 /* OpenBraceToken */:
140632+
if (ts.length(stack)) {
140633+
stack.push(token);
140634+
}
140635+
break;
140636+
case 19 /* CloseBraceToken */:
140637+
if (ts.length(stack)) {
140638+
if (ts.lastOrUndefined(stack) === 15 /* TemplateHead */) {
140639+
if (ts.scanner.reScanTemplateToken(/* isTaggedTemplate */ false) === 17 /* TemplateTail */) {
140640+
stack.pop();
140641+
}
140642+
}
140643+
else {
140644+
stack.pop();
140645+
}
140646+
}
140647+
break;
140648+
}
140649+
token = ts.scanner.scan();
140650+
}
140651+
nextToken();
140652+
}
140628140653
// check if at least one of alternative have moved scanner forward
140629140654
if (tryConsumeDeclare() ||
140630140655
tryConsumeImport() ||

lib/typescript.js

Lines changed: 37 additions & 12 deletions
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 = "4.6.2";
297+
ts.version = "4.6.3";
298298
/* @internal */
299299
var Comparison;
300300
(function (Comparison) {
@@ -31548,18 +31548,8 @@ var ts;
3154831548
if (tryParseSemicolon()) {
3154931549
return;
3155031550
}
31551-
// If an initializer was parsed but there is still an error in finding the next semicolon,
31552-
// we generally know there was an error already reported in the initializer...
31553-
// class Example { a = new Map([), ) }
31554-
// ~
3155531551
if (initializer) {
31556-
// ...unless we've found the start of a block after a property declaration, in which
31557-
// case we can know that regardless of the initializer we should complain on the block.
31558-
// class Example { a = 0 {} }
31559-
// ~
31560-
if (token() === 18 /* OpenBraceToken */) {
31561-
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
31562-
}
31552+
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
3156331553
return;
3156431554
}
3156531555
parseErrorForMissingSemicolonAfter(name);
@@ -140625,6 +140615,41 @@ var ts;
140625140615
if (ts.scanner.getToken() === 1 /* EndOfFileToken */) {
140626140616
break;
140627140617
}
140618+
if (ts.scanner.getToken() === 15 /* TemplateHead */) {
140619+
var stack = [ts.scanner.getToken()];
140620+
var token = ts.scanner.scan();
140621+
loop: while (ts.length(stack)) {
140622+
switch (token) {
140623+
case 1 /* EndOfFileToken */:
140624+
break loop;
140625+
case 100 /* ImportKeyword */:
140626+
tryConsumeImport();
140627+
break;
140628+
case 15 /* TemplateHead */:
140629+
stack.push(token);
140630+
break;
140631+
case 18 /* OpenBraceToken */:
140632+
if (ts.length(stack)) {
140633+
stack.push(token);
140634+
}
140635+
break;
140636+
case 19 /* CloseBraceToken */:
140637+
if (ts.length(stack)) {
140638+
if (ts.lastOrUndefined(stack) === 15 /* TemplateHead */) {
140639+
if (ts.scanner.reScanTemplateToken(/* isTaggedTemplate */ false) === 17 /* TemplateTail */) {
140640+
stack.pop();
140641+
}
140642+
}
140643+
else {
140644+
stack.pop();
140645+
}
140646+
}
140647+
break;
140648+
}
140649+
token = ts.scanner.scan();
140650+
}
140651+
nextToken();
140652+
}
140628140653
// check if at least one of alternative have moved scanner forward
140629140654
if (tryConsumeDeclare() ||
140630140655
tryConsumeImport() ||

lib/typescriptServices.js

Lines changed: 37 additions & 12 deletions
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 = "4.6.2";
297+
ts.version = "4.6.3";
298298
/* @internal */
299299
var Comparison;
300300
(function (Comparison) {
@@ -31548,18 +31548,8 @@ var ts;
3154831548
if (tryParseSemicolon()) {
3154931549
return;
3155031550
}
31551-
// If an initializer was parsed but there is still an error in finding the next semicolon,
31552-
// we generally know there was an error already reported in the initializer...
31553-
// class Example { a = new Map([), ) }
31554-
// ~
3155531551
if (initializer) {
31556-
// ...unless we've found the start of a block after a property declaration, in which
31557-
// case we can know that regardless of the initializer we should complain on the block.
31558-
// class Example { a = 0 {} }
31559-
// ~
31560-
if (token() === 18 /* OpenBraceToken */) {
31561-
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
31562-
}
31552+
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
3156331553
return;
3156431554
}
3156531555
parseErrorForMissingSemicolonAfter(name);
@@ -140625,6 +140615,41 @@ var ts;
140625140615
if (ts.scanner.getToken() === 1 /* EndOfFileToken */) {
140626140616
break;
140627140617
}
140618+
if (ts.scanner.getToken() === 15 /* TemplateHead */) {
140619+
var stack = [ts.scanner.getToken()];
140620+
var token = ts.scanner.scan();
140621+
loop: while (ts.length(stack)) {
140622+
switch (token) {
140623+
case 1 /* EndOfFileToken */:
140624+
break loop;
140625+
case 100 /* ImportKeyword */:
140626+
tryConsumeImport();
140627+
break;
140628+
case 15 /* TemplateHead */:
140629+
stack.push(token);
140630+
break;
140631+
case 18 /* OpenBraceToken */:
140632+
if (ts.length(stack)) {
140633+
stack.push(token);
140634+
}
140635+
break;
140636+
case 19 /* CloseBraceToken */:
140637+
if (ts.length(stack)) {
140638+
if (ts.lastOrUndefined(stack) === 15 /* TemplateHead */) {
140639+
if (ts.scanner.reScanTemplateToken(/* isTaggedTemplate */ false) === 17 /* TemplateTail */) {
140640+
stack.pop();
140641+
}
140642+
}
140643+
else {
140644+
stack.pop();
140645+
}
140646+
}
140647+
break;
140648+
}
140649+
token = ts.scanner.scan();
140650+
}
140651+
nextToken();
140652+
}
140628140653
// check if at least one of alternative have moved scanner forward
140629140654
if (tryConsumeDeclare() ||
140630140655
tryConsumeImport() ||

lib/typingsInstaller.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ var ts;
8989
// The following is baselined as a literal template type without intervention
9090
/** The version of the TypeScript compiler release */
9191
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
92-
ts.version = "4.6.2";
92+
ts.version = "4.6.3";
9393
/* @internal */
9494
var Comparison;
9595
(function (Comparison) {
@@ -31343,18 +31343,8 @@ var ts;
3134331343
if (tryParseSemicolon()) {
3134431344
return;
3134531345
}
31346-
// If an initializer was parsed but there is still an error in finding the next semicolon,
31347-
// we generally know there was an error already reported in the initializer...
31348-
// class Example { a = new Map([), ) }
31349-
// ~
3135031346
if (initializer) {
31351-
// ...unless we've found the start of a block after a property declaration, in which
31352-
// case we can know that regardless of the initializer we should complain on the block.
31353-
// class Example { a = 0 {} }
31354-
// ~
31355-
if (token() === 18 /* OpenBraceToken */) {
31356-
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
31357-
}
31347+
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));
3135831348
return;
3135931349
}
3136031350
parseErrorForMissingSemicolonAfter(name);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "typescript",
33
"author": "Microsoft Corp.",
44
"homepage": "https://www.typescriptlang.org/",
5-
"version": "4.6.2",
5+
"version": "4.6.3",
66
"license": "Apache-2.0",
77
"description": "TypeScript is a language for application scale JavaScript development",
88
"keywords": [

src/compiler/corePublic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace ts {
55
// The following is baselined as a literal template type without intervention
66
/** The version of the TypeScript compiler release */
77
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
8-
export const version = "4.6.2" as string;
8+
export const version = "4.6.3" as string;
99

1010
/**
1111
* Type of objects whose values are all of the same type.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy