Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: forward accessor proxy getter results #14387

Merged
merged 1 commit into from Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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