Skip to content

Commit

Permalink
Add missing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Feb 5, 2024
1 parent bf69a4b commit 2e55226
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
@@ -0,0 +1,9 @@
class A {
set #setter(v) {}
get #getter() {}

m() {
[this.#setter] = [1];
[this.#getter] = [1];
}
}
@@ -0,0 +1,12 @@
var _setter = /*#__PURE__*/new WeakSet();
class A {
constructor() {
babelHelpers.classPrivateMethodInitSpec(this, _setter);
}
m() {
[babelHelpers.toSetter(_ => babelHelpers.classPrivateSetter(this, _setter, _set_setter, _))._] = [1];
[(this, babelHelpers.readOnlyError("#getter"))._] = [1];
}
}
function _set_setter(v) {}
function _get_getter() {}
@@ -0,0 +1,7 @@
class A {
#method() {}

m() {
[this.#method] = [1];
}
}
@@ -0,0 +1,10 @@
var _method = /*#__PURE__*/new WeakSet();
class A {
constructor() {
babelHelpers.classPrivateMethodInitSpec(this, _method);
}
m() {
[(this, babelHelpers.readOnlyError("#method"))._] = [1];
}
}
function _method2() {}

0 comments on commit 2e55226

Please sign in to comment.