Fixes issues with emit for cloned identifiers

This commit is contained in:
Ron Buckton 2016-03-21 18:31:32 -07:00
parent 913545e9a7
commit 28499dd8ef
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ namespace ts {
export function createIdentifier(text: string, location?: TextRange): Identifier {
const node = <Identifier>createNode(SyntaxKind.Identifier, location);
node.text = text;
node.text = escapeIdentifier(text);
return node;
}

View File

@ -2349,7 +2349,7 @@ const _super = (function (geti, seti) {
return getGeneratedIdentifier(node);
}
else if (nodeIsSynthesized(node) || !node.parent) {
return node.text;
return unescapeIdentifier(node.text);
}
}
else if (isLiteralExpression(node) && (nodeIsSynthesized(node) || !node.parent)) {