RegExp.compile() actually returns this, per ES6 annex B.

This commit is contained in:
Arnavion 2016-03-22 19:49:43 -07:00
parent 7bb0ce9048
commit d2d02c796b

2
src/lib/core.d.ts vendored
View file

@ -836,7 +836,7 @@ interface RegExp {
lastIndex: number;
// Non-standard extensions
compile(): RegExp | undefined;
compile(): this;
}
interface RegExpConstructor {