@@ -16,7 +16,6 @@ import type ClassBody from '../ClassBody';
1616import Identifier from '../Identifier' ;
1717import type Literal from '../Literal' ;
1818import MethodDefinition from '../MethodDefinition' ;
19- import PropertyDefinition from '../PropertyDefinition' ;
2019import { type ExpressionEntity , type LiteralValueOrUnknown } from './Expression' ;
2120import { type ExpressionNode , type IncludeChildren , NodeBase } from './Node' ;
2221import { ObjectEntity , type ObjectProperty } from './ObjectEntity' ;
@@ -40,12 +39,6 @@ export default class ClassNode extends NodeBase implements DeoptimizableEntity {
4039
4140 deoptimizePath ( path : ObjectPath ) : void {
4241 this . getObjectEntity ( ) . deoptimizePath ( path ) ;
43- if ( path . length === 1 && path [ 0 ] === UnknownKey ) {
44- // A reassignment of UNKNOWN_PATH is considered equivalent to having lost track
45- // which means the constructor needs to be reassigned
46- this . classConstructor ?. deoptimizePath ( UNKNOWN_PATH ) ;
47- this . superClass ?. deoptimizePath ( UNKNOWN_PATH ) ;
48- }
4942 }
5043
5144 deoptimizeThisOnEventAtPath (
@@ -150,11 +143,8 @@ export default class ClassNode extends NodeBase implements DeoptimizableEntity {
150143 ) {
151144 // Calls to methods are not tracked, ensure that the return value is deoptimized
152145 definition . deoptimizePath ( UNKNOWN_PATH ) ;
153- } else if ( definition instanceof PropertyDefinition ) {
154- definition . value ?. deoptimizeCallParameters ( ) ;
155146 }
156147 }
157- this . superClass ?. deoptimizeCallParameters ( ) ;
158148 this . context . requestTreeshakingPass ( ) ;
159149 }
160150
0 commit comments