* test case for insertBefore for jsx * fix unshiftContainer and insertBefore * use path.scope.push * add test making sure computedKeys var declaration at the right block * add comment * nit [skip ci]
13 lines
255 B
JavaScript
13 lines
255 B
JavaScript
const classes = [];
|
|
for (let i = 0; i <= 10; ++i) {
|
|
classes.push(
|
|
class A {
|
|
[i] = `computed field ${i}`;
|
|
static foo = `static field ${i}`;
|
|
#bar = `private field ${i}`;
|
|
getBar() {
|
|
return this.#bar;
|
|
}
|
|
}
|
|
);
|
|
} |