Skip to content

Commit 6f1feff

Browse files
committed
Update LKG
1 parent 13ef271 commit 6f1feff

File tree

10 files changed

+3450
-2823
lines changed

10 files changed

+3450
-2823
lines changed

bin/lib.core.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ interface RegExp {
838838
*/
839839
test(string: string): boolean;
840840

841-
/** Returns a copy of the text of the regular expression pattern. Read-only. The rgExp argument is a Regular expression object. It can be a variable name or a literal. */
841+
/** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
842842
source: string;
843843

844844
/** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */

bin/lib.core.es6.d.ts

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ interface RegExp {
838838
*/
839839
test(string: string): boolean;
840840

841-
/** Returns a copy of the text of the regular expression pattern. Read-only. The rgExp argument is a Regular expression object. It can be a variable name or a literal. */
841+
/** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
842842
source: string;
843843

844844
/** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
@@ -1236,26 +1236,21 @@ interface SymbolConstructor {
12361236
*/
12371237
isConcatSpreadable: symbol;
12381238

1239-
/**
1240-
* A Boolean value that if true indicates that an object may be used as a regular expression.
1241-
*/
1242-
isRegExp: symbol;
1243-
12441239
/**
12451240
* A method that returns the default iterator for an object.Called by the semantics of the
1246-
* for-of statement.
1241+
* for-of statement.
12471242
*/
12481243
iterator: symbol;
12491244

12501245
/**
12511246
* A method that converts an object to a corresponding primitive value.Called by the ToPrimitive
1252-
* abstract operation.
1247+
* abstract operation.
12531248
*/
12541249
toPrimitive: symbol;
12551250

12561251
/**
1257-
* A String value that is used in the creation of the default string description of an object.
1258-
* Called by the built- in method Object.prototype.toString.
1252+
* A String value that is used in the creation of the default string description of an object.
1253+
* Called by the built-in method Object.prototype.toString.
12591254
*/
12601255
toStringTag: symbol;
12611256

@@ -1297,7 +1292,7 @@ interface ObjectConstructor {
12971292
getOwnPropertySymbols(o: any): symbol[];
12981293

12991294
/**
1300-
* Returns true if the values are the same value, false otherwise.
1295+
* Returns true if the values are the same value, false otherwise.
13011296
* @param value1 The first value.
13021297
* @param value2 The second value.
13031298
*/
@@ -1784,8 +1779,6 @@ interface Math {
17841779
}
17851780

17861781
interface RegExp {
1787-
[Symbol.isRegExp]: boolean;
1788-
17891782
/**
17901783
* Matches a string with a regular expression, and returns an array containing the results of
17911784
* that search.
@@ -1817,6 +1810,20 @@ interface RegExp {
18171810
*/
18181811
split(string: string, limit?: number): string[];
18191812

1813+
/**
1814+
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
1815+
* The characters in this string are sequenced and concatenated in the following order:
1816+
*
1817+
* - "g" for global
1818+
* - "i" for ignoreCase
1819+
* - "m" for multiline
1820+
* - "u" for unicode
1821+
* - "y" for sticky
1822+
*
1823+
* If no flags are set, the value is the empty string.
1824+
*/
1825+
flags: string;
1826+
18201827
/**
18211828
* Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
18221829
* expression. Default is false. Read-only.

bin/lib.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ interface RegExp {
838838
*/
839839
test(string: string): boolean;
840840

841-
/** Returns a copy of the text of the regular expression pattern. Read-only. The rgExp argument is a Regular expression object. It can be a variable name or a literal. */
841+
/** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
842842
source: string;
843843

844844
/** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */

bin/lib.es6.d.ts

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ interface RegExp {
838838
*/
839839
test(string: string): boolean;
840840

841-
/** Returns a copy of the text of the regular expression pattern. Read-only. The rgExp argument is a Regular expression object. It can be a variable name or a literal. */
841+
/** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
842842
source: string;
843843

844844
/** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
@@ -1236,26 +1236,21 @@ interface SymbolConstructor {
12361236
*/
12371237
isConcatSpreadable: symbol;
12381238

1239-
/**
1240-
* A Boolean value that if true indicates that an object may be used as a regular expression.
1241-
*/
1242-
isRegExp: symbol;
1243-
12441239
/**
12451240
* A method that returns the default iterator for an object.Called by the semantics of the
1246-
* for-of statement.
1241+
* for-of statement.
12471242
*/
12481243
iterator: symbol;
12491244

12501245
/**
12511246
* A method that converts an object to a corresponding primitive value.Called by the ToPrimitive
1252-
* abstract operation.
1247+
* abstract operation.
12531248
*/
12541249
toPrimitive: symbol;
12551250

12561251
/**
1257-
* A String value that is used in the creation of the default string description of an object.
1258-
* Called by the built- in method Object.prototype.toString.
1252+
* A String value that is used in the creation of the default string description of an object.
1253+
* Called by the built-in method Object.prototype.toString.
12591254
*/
12601255
toStringTag: symbol;
12611256

@@ -1297,7 +1292,7 @@ interface ObjectConstructor {
12971292
getOwnPropertySymbols(o: any): symbol[];
12981293

12991294
/**
1300-
* Returns true if the values are the same value, false otherwise.
1295+
* Returns true if the values are the same value, false otherwise.
13011296
* @param value1 The first value.
13021297
* @param value2 The second value.
13031298
*/
@@ -1784,8 +1779,6 @@ interface Math {
17841779
}
17851780

17861781
interface RegExp {
1787-
[Symbol.isRegExp]: boolean;
1788-
17891782
/**
17901783
* Matches a string with a regular expression, and returns an array containing the results of
17911784
* that search.
@@ -1817,6 +1810,20 @@ interface RegExp {
18171810
*/
18181811
split(string: string, limit?: number): string[];
18191812

1813+
/**
1814+
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
1815+
* The characters in this string are sequenced and concatenated in the following order:
1816+
*
1817+
* - "g" for global
1818+
* - "i" for ignoreCase
1819+
* - "m" for multiline
1820+
* - "u" for unicode
1821+
* - "y" for sticky
1822+
*
1823+
* If no flags are set, the value is the empty string.
1824+
*/
1825+
flags: string;
1826+
18201827
/**
18211828
* Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
18221829
* expression. Default is false. Read-only.

0 commit comments

Comments
 (0)