File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ module ts {
1111 assert . isTrue ( typeAndDiagnostics && typeAndDiagnostics . diagnostics . length === 0 ) ;
1212
1313 let result = Utils . sourceFileToJSON ( typeAndDiagnostics . jsDocTypeExpression . type ) ;
14+
1415 assert . equal ( result , expected ) ;
1516 }
1617
@@ -998,7 +999,7 @@ module ts {
998999 ? JSON . parse ( Utils . sourceFileToJSON ( v ) )
9991000 : v ;
10001001 } , 4 ) ;
1001-
1002+
10021003 if ( result !== expected ) {
10031004 // Turn on a human-readable diff
10041005 if ( typeof require !== 'undefined' ) {
You can’t perform that action at this time.
0 commit comments