[Transforms] Accept .js baselines when there are compiler's errors (#8744)

* Accept .js baselines as these are baselines when there are compiling errors

* Remove unnecessary setting of flag because this operation is handled in getReferencedExportContainer function in checker
This commit is contained in:
Yui 2016-05-23 10:02:08 -07:00
parent 9bae57ec3d
commit 9cd96e6929
3 changed files with 3 additions and 6 deletions

View File

@ -698,9 +698,6 @@ namespace ts {
function visitClassDeclaration(node: ClassDeclaration): VisitResult<Statement> {
const statements: Statement[] = [];
const name = node.name || getGeneratedNameForNode(node);
// Set emitFlags on the name of the classDeclaration
// This is so that when printer will not substitute the identifier
setNodeEmitFlags(name, NodeEmitFlags.NoSubstitution);
if (hasModifier(node, ModifierFlags.Export)) {
statements.push(
setOriginalNode(

View File

@ -33,7 +33,7 @@ var Decl = (function () {
return Decl;
}());
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = Decl;
exports.default = exports.Decl;
//// [m2.js]
"use strict";
var m1_1 = require("m1");

View File

@ -18,7 +18,7 @@ export interface Foo {
function Foo() {
}
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = Foo;
exports.default = exports.Foo;
var Foo;
(function (Foo) {
})(Foo || (Foo = {}));
})(exports.Foo || (exports.Foo = {}));