mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
371 B
TypeScript
20 lines
371 B
TypeScript
//// [tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName25.ts] ////
|
|
|
|
//// [parserComputedPropertyName25.ts]
|
|
class C {
|
|
// No ASI
|
|
[e] = 0
|
|
[e2] = 1
|
|
}
|
|
|
|
//// [parserComputedPropertyName25.js]
|
|
"use strict";
|
|
var _a;
|
|
class C {
|
|
constructor() {
|
|
// No ASI
|
|
this[_a] = 0[e2] = 1;
|
|
}
|
|
}
|
|
_a = e;
|