Skip to content

Commit 7dcdb82

Browse files
committed
Add JavaScriptFile to ContextFlags
(cherry picked from commit 6253c9b)
1 parent c531fcb commit 7dcdb82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ namespace ts {
411411
EmitHelperFlags = HasClassExtends | HasDecorators | HasParamDecorators | HasAsyncFunctions,
412412

413413
// Parsing context flags
414-
ContextFlags = DisallowInContext | YieldContext | DecoratorContext | AwaitContext,
414+
ContextFlags = DisallowInContext | YieldContext | DecoratorContext | AwaitContext | JavaScriptFile,
415415

416416
// Exclude these flags when parsing a Type
417417
TypeExcludesFlags = YieldContext | AwaitContext,

0 commit comments

Comments
 (0)