mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
404 B
TypeScript
18 lines
404 B
TypeScript
//// [tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts] ////
|
|
|
|
//// [parserComputedPropertyName30.ts]
|
|
enum E {
|
|
// no ASI, comma expected
|
|
[e] = id++
|
|
[e2] = 1
|
|
}
|
|
|
|
//// [parserComputedPropertyName30.js]
|
|
"use strict";
|
|
var E;
|
|
(function (E) {
|
|
// no ASI, comma expected
|
|
E[E[e] = id++] = e;
|
|
E[E[e2] = 1] = e2;
|
|
})(E || (E = {}));
|