From bf731646ecd5b91d8ec03e939aca8c9d10691843 Mon Sep 17 00:00:00 2001 From: vvakame Date: Wed, 26 Nov 2014 22:28:52 +0900 Subject: [PATCH] Add missing prototype properties --- src/lib/core.d.ts | 1 + src/lib/extensions.d.ts | 3 +++ .../reference/constDeclarationShadowedByVarDeclaration3.types | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/core.d.ts b/src/lib/core.d.ts index 7f498488f21..5abc7fe2037 100644 --- a/src/lib/core.d.ts +++ b/src/lib/core.d.ts @@ -822,6 +822,7 @@ interface RegExp { declare var RegExp: { new (pattern: string, flags?: string): RegExp; (pattern: string, flags?: string): RegExp; + prototype: RegExp; // Non-standard extensions $1: string; diff --git a/src/lib/extensions.d.ts b/src/lib/extensions.d.ts index 82cc129ecbc..f4387543c01 100644 --- a/src/lib/extensions.d.ts +++ b/src/lib/extensions.d.ts @@ -631,6 +631,7 @@ interface Map { } declare var Map: { new (): Map; + prototype: Map; } interface WeakMap { @@ -642,6 +643,7 @@ interface WeakMap { } declare var WeakMap: { new (): WeakMap; + prototype: WeakMap; } interface Set { @@ -654,6 +656,7 @@ interface Set { } declare var Set: { new (): Set; + prototype: Set; } declare module Intl { diff --git a/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.types b/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.types index 89490567f14..3e688cc7674 100644 --- a/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.types +++ b/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.types @@ -7,7 +7,7 @@ class Rule { >regex : RegExp >RegExp : RegExp >new RegExp('') : RegExp ->RegExp : { (pattern: string, flags?: string): RegExp; new (pattern: string, flags?: string): RegExp; $1: string; $2: string; $3: string; $4: string; $5: string; $6: string; $7: string; $8: string; $9: string; lastMatch: string; } +>RegExp : { (pattern: string, flags?: string): RegExp; new (pattern: string, flags?: string): RegExp; prototype: RegExp; $1: string; $2: string; $3: string; $4: string; $5: string; $6: string; $7: string; $8: string; $9: string; lastMatch: string; } public name: string = ''; >name : string