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 {
411
411
EmitHelperFlags = HasClassExtends | HasDecorators | HasParamDecorators | HasAsyncFunctions ,
412
412
413
413
// Parsing context flags
414
- ContextFlags = DisallowInContext | YieldContext | DecoratorContext | AwaitContext ,
414
+ ContextFlags = DisallowInContext | YieldContext | DecoratorContext | AwaitContext | JavaScriptFile ,
415
415
416
416
// Exclude these flags when parsing a Type
417
417
TypeExcludesFlags = YieldContext | AwaitContext ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ module ts {
11
11
assert . isTrue ( typeAndDiagnostics && typeAndDiagnostics . diagnostics . length === 0 ) ;
12
12
13
13
let result = Utils . sourceFileToJSON ( typeAndDiagnostics . jsDocTypeExpression . type ) ;
14
+
14
15
assert . equal ( result , expected ) ;
15
16
}
16
17
@@ -998,7 +999,7 @@ module ts {
998
999
? JSON . parse ( Utils . sourceFileToJSON ( v ) )
999
1000
: v ;
1000
1001
} , 4 ) ;
1001
-
1002
+
1002
1003
if ( result !== expected ) {
1003
1004
// Turn on a human-readable diff
1004
1005
if ( typeof require !== 'undefined' ) {
You can’t perform that action at this time.
0 commit comments