mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
RegExp.compile() actually returns this, per ES6 annex B.
This commit is contained in:
Vendored
+1
-1
@@ -836,7 +836,7 @@ interface RegExp {
|
||||
lastIndex: number;
|
||||
|
||||
// Non-standard extensions
|
||||
compile(): RegExp | undefined;
|
||||
compile(): this;
|
||||
}
|
||||
|
||||
interface RegExpConstructor {
|
||||
|
||||
Reference in New Issue
Block a user