Skip to content

Commit 7519531

Browse files
committed
Fix in emitCall() method
1 parent f55fbe7 commit 7519531

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/compiler/emitter.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,9 @@ module TypeScript {
633633
if (args && args.members.length) this.writeToOutput(", ");
634634

635635
this.recordSourceMappingStart(args);
636+
if (isCallToSelf) this.writeToOutput("[");
637+
this.emitCommaSeparatedList(args);
638+
if (isCallToSelf) this.writeToOutput("]");
636639
}
637640
else {
638641
if (target.nodeType() === NodeType.FunctionDeclaration) {
@@ -656,10 +659,11 @@ module TypeScript {
656659
this.writeToOutput(", ");
657660
}
658661
}
662+
663+
//Emit arguments
664+
this.emitCommaSeparatedList(args);
659665
}
660-
661-
//Emit arguments
662-
this.emitCommaSeparatedList(args);
666+
663667
this.recordSourceMappingStart(callNode.closeParenSpan);
664668
this.writeToOutput(")");
665669
this.recordSourceMappingEnd(callNode.closeParenSpan);

src/compiler/tsc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module TypeScript {
5151

5252
constructor(private ioHost: IIO) {
5353
//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; ' +
5555
'please ensure that is available locally to your project, or install it as a global module using `npm install -g typescript-dci`.';
5656
//We have to use eval() here since we want the require() function to be run directly by node.js, not by TypeScript
5757
eval('try { require("dci"); } catch(e) { console.error("' + msg + '"); }');

0 commit comments

Comments
 (0)