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

Add optional deep chain with private access #1613

Merged
merged 1 commit into from
May 1, 2020
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
26 changes: 26 additions & 0 deletions data-esnext.js
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,32 @@ exports.tests = [
typescript3_8corejs3: false,
}
},
{
name: 'optional deep private instance class fields access',
exec: function () {/*
class C {
#x = 42;
x(o = {p: this}){
return o?.p.#x;
}
}
return new C().x() === 42 && new C().x(null) === void 0;
*/},
res: {
ie11: false,
firefox2: false,
firefox74: firefox.privateClassFields,
chrome1: false,
chrome78: {val: 'flagged', note_id: "chrome-optional-chaining", note_html: "The feature have to be enabled via <code>--js-flags=\"--harmony-optional-chaining\"</code> flag"},
chrome80: true,
safari1: false,
safari13_1: false,
opera10_50: false,
graalvm20: false,
babel7corejs3: false,
typescript3_8corejs3: false,
}
},
{
name: 'computed instance class fields',
exec: function () {/*
Expand Down