Skip to content

Commit

Permalink
wip: destructure super assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhauhau committed May 26, 2019
1 parent 94f7d2f commit d344e8d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/babel-helper-replace-supers/src/index.js
Expand Up @@ -125,6 +125,10 @@ const specHandlers = {
]);
},

destructureSet() {
// TODO
},

call(superMember, args) {
return optimiseCall(this.get(superMember), t.thisExpression(), args);
},
Expand Down Expand Up @@ -174,6 +178,13 @@ const looseHandlers = {
value,
);
},

destructureSet(superMember) {
const { computed } = superMember.node;
const prop = this.prop(superMember);

return t.memberExpression(t.thisExpression(), prop, computed);
},
};

export default class ReplaceSupers {
Expand Down

0 comments on commit d344e8d

Please sign in to comment.