Skip to content

Commit d2d02c7

Browse files
author
Arnavion
committed
RegExp.compile() actually returns this, per ES6 annex B.
1 parent 7bb0ce9 commit d2d02c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/core.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ interface RegExp {
836836
lastIndex: number;
837837

838838
// Non-standard extensions
839-
compile(): RegExp | undefined;
839+
compile(): this;
840840
}
841841

842842
interface RegExpConstructor {

0 commit comments

Comments
 (0)