Skip to content

Commit

Permalink
Add TODO for "this" issue
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Apr 26, 2024
1 parent 6635673 commit 3f05b8f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1652,6 +1652,8 @@ public JsNode transformSwitchExpression(JSwitchExpression x) {
// to maintain a stack of nested JsFunctions (in case of nested switch expressions), and
// potentially lets the compiler reuse locals.
JsScope scope = getJsFunctionFor(currentMethod).getScope();

// TODO we must bind(this) or .apply(this), or use an arrow expression instead
JsFunction wrapper = new JsFunction(info, scope);

// Write out the switch expression as if it was a statement - every case must have returns
Expand Down

0 comments on commit 3f05b8f

Please sign in to comment.