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:
committed by
Nicolò Ribaudo
parent
852520eff5
commit
bda759ac3d
@@ -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);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user