Closed Turbo87 closed 6 years ago
// before let context = this.getProperties('afterSalesCharges', 'exchanges', 'pnrs', 'subscriptions'); // after let context = this;
After the transformation context is just a reference to this, instead of a dedicated object with just the specified properties.
context
this
I guess we should only transform to this if the element before the assignment is a destructuring operation
Definitely. I thought I had a guard for this exact thing :(
After the transformation
context
is just a reference tothis
, instead of a dedicated object with just the specified properties.