Allow to omit the begin parameter of %TypedArray%.prototype.subarray (#32125)

* Allow to omit the begin parameter of %TypedArray%.prototype.subarray

* update baselines
This commit is contained in:
阿卡琳
2019-08-16 06:58:24 +08:00
committed by Ryan Cavanaugh
parent dcb763f624
commit a53e4a19ef
11 changed files with 770 additions and 20 deletions

18
src/lib/es5.d.ts vendored
View File

@@ -1887,7 +1887,7 @@ interface Int8Array {
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Int8Array;
subarray(begin?: number, end?: number): Int8Array;
/**
* Converts a number to a string by using the current locale.
@@ -2162,7 +2162,7 @@ interface Uint8Array {
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Uint8Array;
subarray(begin?: number, end?: number): Uint8Array;
/**
* Converts a number to a string by using the current locale.
@@ -2437,7 +2437,7 @@ interface Uint8ClampedArray {
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Uint8ClampedArray;
subarray(begin?: number, end?: number): Uint8ClampedArray;
/**
* Converts a number to a string by using the current locale.
@@ -2710,7 +2710,7 @@ interface Int16Array {
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Int16Array;
subarray(begin?: number, end?: number): Int16Array;
/**
* Converts a number to a string by using the current locale.
@@ -2986,7 +2986,7 @@ interface Uint16Array {
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Uint16Array;
subarray(begin?: number, end?: number): Uint16Array;
/**
* Converts a number to a string by using the current locale.
@@ -3261,7 +3261,7 @@ interface Int32Array {
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Int32Array;
subarray(begin?: number, end?: number): Int32Array;
/**
* Converts a number to a string by using the current locale.
@@ -3535,7 +3535,7 @@ interface Uint32Array {
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Uint32Array;
subarray(begin?: number, end?: number): Uint32Array;
/**
* Converts a number to a string by using the current locale.
@@ -3810,7 +3810,7 @@ interface Float32Array {
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Float32Array;
subarray(begin?: number, end?: number): Float32Array;
/**
* Converts a number to a string by using the current locale.
@@ -4086,7 +4086,7 @@ interface Float64Array {
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Float64Array;
subarray(begin?: number, end?: number): Float64Array;
/**
* Converts a number to a string by using the current locale.

View File

@@ -260,7 +260,7 @@ interface BigInt64Array {
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): BigInt64Array;
subarray(begin?: number, end?: number): BigInt64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;
@@ -529,7 +529,7 @@ interface BigUint64Array {
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): BigUint64Array;
subarray(begin?: number, end?: number): BigUint64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;