Skip to content

Commit

Permalink
WIP 4
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Nov 21, 2023
1 parent 30103a9 commit 3cf75d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/instrument/visitors/assignee.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ function IdentifierVar(node, state) {
} else {
binding = createBinding(block, varName, {isVar: true}, state);
}

if (fn) fn.bindings.push(binding);
} else if (binding.isFunction) {
// NB: No need to check `binding.isFrozenName` because it's only set in 2nd pass
Expand Down

0 comments on commit 3cf75d7

Please sign in to comment.