Add JavaScriptFile to ContextFlags

(cherry picked from commit 6253c9b5cd6a8fa5e08bf88ddabdf0283ccf7007)
This commit is contained in:
Bill Ticehurst 2016-02-29 19:21:20 -08:00
parent c531fcbb9a
commit 7dcdb827b6

View File

@ -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,