Fix super method call in private instance method calling overridden method (#9801)
* Fix super method call in private instance method calling overridden method * Change return value in test fixtures * Update tests to verify that overridden method is not called
This commit is contained in:
committed by
Justin Ridgewell
parent
ae9b25ac69
commit
3c11a4a930
@@ -501,7 +501,9 @@ function replaceThisContext(path, ref, superRef, file, loose) {
|
||||
file,
|
||||
getObjectRef() {
|
||||
state.needsClassRef = true;
|
||||
return path.node.static ? ref : t.thisExpression();
|
||||
return path.node.static
|
||||
? ref
|
||||
: t.memberExpression(ref, t.identifier("prototype"));
|
||||
},
|
||||
});
|
||||
replacer.replace();
|
||||
|
||||
Reference in New Issue
Block a user