From d2d02c796beae099c64df8f7bec3bd3703d3e35d Mon Sep 17 00:00:00 2001 From: Arnavion Date: Tue, 22 Mar 2016 19:49:43 -0700 Subject: [PATCH] RegExp.compile() actually returns `this`, per ES6 annex B. --- src/lib/core.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/core.d.ts b/src/lib/core.d.ts index 280eabebeda..e3f5928794f 100644 --- a/src/lib/core.d.ts +++ b/src/lib/core.d.ts @@ -836,7 +836,7 @@ interface RegExp { lastIndex: number; // Non-standard extensions - compile(): RegExp | undefined; + compile(): this; } interface RegExpConstructor {