File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -633,6 +633,9 @@ module TypeScript {
633
633
if ( args && args . members . length ) this . writeToOutput ( ", " ) ;
634
634
635
635
this . recordSourceMappingStart ( args ) ;
636
+ if ( isCallToSelf ) this . writeToOutput ( "[" ) ;
637
+ this . emitCommaSeparatedList ( args ) ;
638
+ if ( isCallToSelf ) this . writeToOutput ( "]" ) ;
636
639
}
637
640
else {
638
641
if ( target . nodeType ( ) === NodeType . FunctionDeclaration ) {
@@ -656,10 +659,11 @@ module TypeScript {
656
659
this . writeToOutput ( ", " ) ;
657
660
}
658
661
}
662
+
663
+ //Emit arguments
664
+ this . emitCommaSeparatedList ( args ) ;
659
665
}
660
-
661
- //Emit arguments
662
- this . emitCommaSeparatedList ( args ) ;
666
+
663
667
this . recordSourceMappingStart ( callNode . closeParenSpan ) ;
664
668
this . writeToOutput ( ")" ) ;
665
669
this . recordSourceMappingEnd ( callNode . closeParenSpan ) ;
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ module TypeScript {
51
51
52
52
constructor ( private ioHost : IIO ) {
53
53
//DCI
54
- var msg = 'typescript-dci warning: DCI node module not installed as a global module; ' +
54
+ var msg = 'Compiler warning: typescript-dci node.js module not installed as a global module; ' +
55
55
'please ensure that is available locally to your project, or install it as a global module using `npm install -g typescript-dci`.' ;
56
56
//We have to use eval() here since we want the require() function to be run directly by node.js, not by TypeScript
57
57
eval ( 'try { require("dci"); } catch(e) { console.error("' + msg + '"); }' ) ;
You can’t perform that action at this time.
0 commit comments