Skip to content

Commit de4e75a

Browse files
authored
Port in ES2024 (#727)
1 parent 90baf15 commit de4e75a

File tree

67 files changed

+1213
-256
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1213
-256
lines changed

_submodules/TypeScript

Submodule TypeScript updated 148 files

internal/bundled/embed_generated.go

Lines changed: 40 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/bundled/libs/lib.es2016.intl.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare namespace Intl {
2222
* the canonical locale names. Duplicates will be omitted and elements
2323
* will be validated as structurally valid language tags.
2424
*
25-
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales)
25+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales)
2626
*
2727
* @param locale A list of String values for which to get the canonical locale names
2828
* @returns An array containing the canonical and validated locale names.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*! *****************************************************************************
2+
Copyright (c) Microsoft Corporation. All rights reserved.
3+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4+
this file except in compliance with the License. You may obtain a copy of the
5+
License at http://www.apache.org/licenses/LICENSE-2.0
6+
7+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10+
MERCHANTABLITY OR NON-INFRINGEMENT.
11+
12+
See the Apache Version 2.0 License for specific language governing permissions
13+
and limitations under the License.
14+
***************************************************************************** */
15+
16+
17+
/// <reference no-default-lib="true"/>
18+
19+
interface ArrayBufferConstructor {
20+
new (): ArrayBuffer;
21+
}

internal/bundled/libs/lib.es2017.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ and limitations under the License.
1717
/// <reference no-default-lib="true"/>
1818

1919
/// <reference lib="es2016" />
20+
/// <reference lib="es2017.arraybuffer" />
21+
/// <reference lib="es2017.date" />
22+
/// <reference lib="es2017.intl" />
2023
/// <reference lib="es2017.object" />
2124
/// <reference lib="es2017.sharedmemory" />
2225
/// <reference lib="es2017.string" />
23-
/// <reference lib="es2017.intl" />
2426
/// <reference lib="es2017.typedarrays" />
25-
/// <reference lib="es2017.date" />

internal/bundled/libs/lib.es2017.sharedmemory.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ interface SharedArrayBuffer {
2828
/**
2929
* Returns a section of an SharedArrayBuffer.
3030
*/
31-
slice(begin: number, end?: number): SharedArrayBuffer;
31+
slice(begin?: number, end?: number): SharedArrayBuffer;
3232
readonly [Symbol.species]: SharedArrayBuffer;
3333
readonly [Symbol.toStringTag]: "SharedArrayBuffer";
3434
}
3535

3636
interface SharedArrayBufferConstructor {
3737
readonly prototype: SharedArrayBuffer;
38-
new (byteLength: number): SharedArrayBuffer;
38+
new (byteLength?: number): SharedArrayBuffer;
3939
}
4040
declare var SharedArrayBuffer: SharedArrayBufferConstructor;
4141

internal/bundled/libs/lib.es2020.bigint.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ and limitations under the License.
2020

2121
interface BigIntToLocaleStringOptions {
2222
/**
23-
* The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
23+
* The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
2424
*/
2525
localeMatcher?: string;
2626
/**

0 commit comments

Comments
 (0)