File tree Expand file tree Collapse file tree
test/form/samples/deoptimize-superclass Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ export class ObjectEntity extends ExpressionEntity {
128128 : this . allProperties ) {
129129 property . deoptimizePath ( subPath ) ;
130130 }
131- this . prototypeExpression ?. deoptimizePath ( path . length === 1 ? [ UnknownKey , UnknownKey ] : path ) ;
131+ this . prototypeExpression ?. deoptimizePath ( path . length === 1 ? [ ... path , UnknownKey ] : path ) ;
132132 }
133133
134134 deoptimizeThisOnEventAtPath (
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ description : 'does not deoptimize the entire superclass when reassigning a property'
3+ } ;
Original file line number Diff line number Diff line change 1+ // Everything else should be removed
2+ console . log ( 'retained' ) ;
Original file line number Diff line number Diff line change 1+ class Foo { }
2+
3+ Foo . prototype . bar = { } ;
4+
5+ class Bar extends Foo { }
6+
7+ Bar . baz = { } ;
8+
9+ // Everything else should be removed
10+ console . log ( 'retained' ) ;
You can’t perform that action at this time.
0 commit comments