From 7dcdb827b6c8fba4f2cef111a2574c9db0729b68 Mon Sep 17 00:00:00 2001 From: Bill Ticehurst Date: Mon, 29 Feb 2016 19:21:20 -0800 Subject: [PATCH] Add JavaScriptFile to ContextFlags (cherry picked from commit 6253c9b5cd6a8fa5e08bf88ddabdf0283ccf7007) --- src/compiler/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index c065478a20a..af5984847f7 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -411,7 +411,7 @@ namespace ts { EmitHelperFlags = HasClassExtends | HasDecorators | HasParamDecorators | HasAsyncFunctions, // Parsing context flags - ContextFlags = DisallowInContext | YieldContext | DecoratorContext | AwaitContext, + ContextFlags = DisallowInContext | YieldContext | DecoratorContext | AwaitContext | JavaScriptFile, // Exclude these flags when parsing a Type TypeExcludesFlags = YieldContext | AwaitContext,