Skip to content

Commit

Permalink
Add tes with export default anonymous class
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 14, 2024
1 parent 2706761 commit 7e379a2
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ Foo = class {
static accessor #a;

static accessor #b = 123;
}
}

export default class {
static accessor #a;

static accessor #b = 123;
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,19 @@ Foo = class Foo {
Foo.#B = v;
}
};
export default class _Class {
static #A;
static get #a() {
return _Class.#A;
}
static set #a(v) {
_Class.#A = v;
}
static #B = 123;
static get #b() {
return _Class.#B;
}
static set #b(v) {
_Class.#B = v;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,12 @@ Foo = class {
static accessor b = 123;

static accessor ['c'] = 456;
}
}

export default class {
static accessor a;

static accessor b = 123;

static accessor ['c'] = 456;
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,26 @@ Foo = class Foo {
Foo.#C = v;
}
};
export default class _Class {
static #A;
static get a() {
return _Class.#A;
}
static set a(v) {
_Class.#A = v;
}
static #B = 123;
static get b() {
return _Class.#B;
}
static set b(v) {
_Class.#B = v;
}
static #C = 456;
static get ['c']() {
return _Class.#C;
}
static set ['c'](v) {
_Class.#C = v;
}
}

0 comments on commit 7e379a2

Please sign in to comment.