Steps to reproduce
main.ts:
enum E {
\u0041 = 1,
}
const a = E.A;
Behavior with typescript@6.0
"use strict";
var E;
(function (E) {
E[E["A"] = 1] = "A";
})(E || (E = {}));
const a = E.A;
Here, a evaluates to 1.
Behavior with tsgo
"use strict";
var E;
(function (E) {
E[E["\\u0041"] = 1] = "\\u0041";
})(E || (E = {}));
const a = E.A;
Here, a evaluates to undefined.
Steps to reproduce
main.ts:Behavior with
typescript@6.0Here,
aevaluates to1.Behavior with
tsgoHere,
aevaluates toundefined.