When creating string literal for property access, unescape the identifier text

Fixes #12562
This commit is contained in:
Sheetal Nandi
2016-12-01 13:04:21 -08:00
committed by Mohamed Hegazy
parent 86f69f13fa
commit e5b5fe1bd7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1905,7 +1905,7 @@ namespace ts {
: (<ComputedPropertyName>name).expression;
}
else if (isIdentifier(name)) {
return createLiteral(name.text);
return createLiteral(unescapeIdentifier(name.text));
}
else {
return getSynthesizedClone(name);
@@ -34,4 +34,4 @@ var A = (function () {
}());
__decorate([
dec()
], A.prototype, "___foo");
], A.prototype, "__foo");