Skip to content

Commit

Permalink
fix: forward accessor proxy getter results (#14387)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Mar 24, 2022
1 parent 326c420 commit efe0188
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Expand Up @@ -385,7 +385,7 @@ function addCallAccessorsFor(
t.cloneNode(key),
[],
t.blockStatement([
t.expressionStatement(
t.returnStatement(
t.callExpression(t.cloneNode(getId), [t.thisExpression()]),
),
]),
Expand Down
Expand Up @@ -37,15 +37,15 @@ function _set_a2(v) {
}

function _get_a2() {
_get_a(this);
return _get_a(this);
}

function _set_b2(v) {
_set_b(this, v);
}

function _get_b2() {
_get_b(this);
return _get_b(this);
}

[_init_a, _get_a, _set_a, _init_b, _get_b, _set_b, _initProto] = babelHelpers.applyDecs(Foo, [[dec, 1, "a", function () {
Expand Down
Expand Up @@ -25,15 +25,15 @@ function _set_a2(v) {
}

function _get_a2() {
_get_a(this);
return _get_a(this);
}

function _set_b2(v) {
_set_b(this, v);
}

function _get_b2() {
_get_b(this);
return _get_b(this);
}

(() => {
Expand Down
Expand Up @@ -21,7 +21,7 @@ class Foo {
}

get #a() {
_get_a(this);
return _get_a(this);
}

#B = _init_b(this, 123);
Expand All @@ -31,7 +31,7 @@ class Foo {
}

get #b() {
_get_b(this);
return _get_b(this);
}

}
Expand Up @@ -24,7 +24,7 @@ class Foo {
}

get #a() {
_get_a(this);
return _get_a(this);
}

static #B = _init_b(this, 123);
Expand All @@ -34,7 +34,7 @@ class Foo {
}

get #b() {
_get_b(this);
return _get_b(this);
}

}
Expand Up @@ -65,7 +65,7 @@ new class extends babelHelpers.identity {
}

get #h() {
_get_h(this);
return _get_h(this);
}

static j() {}
Expand All @@ -87,7 +87,7 @@ new class extends babelHelpers.identity {
}

get #r() {
_get_r(this);
return _get_r(this);
}

}
Expand Down

0 comments on commit efe0188

Please sign in to comment.