Skip to content

Commit

Permalink
fix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Nov 13, 2023
1 parent ee2e7c0 commit 4681c06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/instrument/visitors/eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ function instrumentEvalCall(callNode, block, fn, isStrict, canUseSuper, state) {
varDefsNodes.push(t.arrayExpression(varDefNodes));

// If var is external to function, record function as using this var.
// Ignore `new.target` as it's not possible to recreate.
// Ignore `new.target` and `super` as they're not possible to recreate.
// https://github.com/overlookmotel/livepack/issues/448
if (blockIsExternalToFunction && varName !== 'new.target') {
if (blockIsExternalToFunction && varName !== 'new.target' && varName !== 'super') {
activateBinding(binding, varName);
const externalVar = getOrCreateExternalVar(externalVars, block, varName, binding);
externalVar.isReadFrom = true;
Expand Down

0 comments on commit 4681c06

Please sign in to comment.