Fix typo from optional chaining test (#2287)

This commit is contained in:
Leo Balter 2019-08-14 12:47:31 -04:00 committed by GitHub
parent 70a07985a5
commit 1da297e305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class B extends A {
return super.a?.name;
}
expr () {
return super['a'].name;
return super['a']?.name;
}
undf2 () {
return super.b?.c;