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

Fixes #12562
This commit is contained in:
Sheetal Nandi authored and Mohamed Hegazy committed 2016-12-01 13:04:21 -08:00
1 parent 86f69f13fa
commit e5b5fe1bd7
2 files changed
+2 -2

No files matched your search

+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");