diff --git a/src/harness/harness.ts b/src/harness/harness.ts index 863afe2f98d..ebe1ef5b9f4 100644 --- a/src/harness/harness.ts +++ b/src/harness/harness.ts @@ -695,6 +695,10 @@ module Harness { sys.newLine = setting.value; break; + case 'comments': + options.removeComments = setting.value === 'false'; + break; + case 'mapsourcefiles': case 'maproot': case 'generatedeclarationfiles': @@ -702,7 +706,6 @@ module Harness { case 'gatherDiagnostics': case 'codepage': case 'createFileLog': - case 'comments': case 'filename': case 'propagateenumconstants': case 'removecomments': diff --git a/tests/baselines/reference/commentsdoNotEmitComments.js b/tests/baselines/reference/commentsdoNotEmitComments.js index 87bd40c0d9e..fa1cc4c4d12 100644 --- a/tests/baselines/reference/commentsdoNotEmitComments.js +++ b/tests/baselines/reference/commentsdoNotEmitComments.js @@ -89,52 +89,38 @@ declare var x; //// [commentsdoNotEmitComments.js] -/** Variable comments*/ var myVariable = 10; -/** function comments*/ function foo(p) { } -/** variable with function type comment*/ var fooVar; foo(50); fooVar(); -/**class comment*/ var c = (function () { - /** constructor comment*/ function c() { - /** property comment */ this.b = 10; } - /** function comment */ c.prototype.myFoo = function () { return this.b; }; Object.defineProperty(c.prototype, "prop1", { - /** getter comment*/ get: function () { return this.b; }, - /** setter comment*/ set: function (val) { this.b = val; }, enumerable: true, configurable: true }); - /** overload implementation signature*/ c.prototype.foo1 = function (aOrb) { return aOrb.toString(); }; return c; })(); -/**instance comment*/ var i = new c(); -/**interface instance comments*/ var i1_i; -/** this is module comment*/ var m1; (function (m1) { - /** class b */ var b = (function () { function b(x) { this.x = x; @@ -166,7 +152,6 @@ interface i1 { prop: string; } declare var i1_i: i1; -/** this is module comment*/ declare module m1 { class b { x: number;