Skip to content

Commit

Permalink
add ?. PrivateIdentifier test (#1612)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Apr 28, 2020
1 parent 9e07df3 commit 4f9c321
Show file tree
Hide file tree
Showing 2 changed files with 452 additions and 305 deletions.
25 changes: 25 additions & 0 deletions data-esnext.js
Expand Up @@ -904,6 +904,31 @@ exports.tests = [
graalvm20: true,
}
},
{
name: 'optional private instance class fields access',
exec: function () {/*
class C {
#x = 42;
x(o = this){
return o?.#x;
}
}
return new C().x() === 42 && new C().x(null) === void 0;
*/},
res: {
ie11: false,
firefox2: false,
chrome1: false,
chrome83: false,
chrome84: 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

0 comments on commit 4f9c321

Please sign in to comment.