Handle private access chained on an optional chain (#11248)

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
This commit is contained in:
Justin Ridgewell
2020-05-26 16:16:50 -04:00
committed by Nicolò Ribaudo
parent 852520eff5
commit bda759ac3d
104 changed files with 6964 additions and 37 deletions

View File

@@ -158,6 +158,7 @@ const specHandlers = {
this._get(superMember, thisRefs),
t.cloneNode(thisRefs.this),
args,
false,
);
},
};
@@ -215,7 +216,7 @@ const looseHandlers = {
},
call(superMember, args) {
return optimiseCall(this.get(superMember), t.thisExpression(), args);
return optimiseCall(this.get(superMember), t.thisExpression(), args, false);
},
};