Skip to content

Commit

Permalink
Correct code comment [nocode]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Nov 20, 2023
1 parent 9f1934b commit c27b748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/instrument/visitors/eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function instrumentEvalCall(callNode, block, fn, isStrict, canUseSuper, superIsP

varNamesUsed.add(varName);

// Create array for var `[varName, isConst, isSilentConst, argNames]`.
// Create array for var `[varName, isConst, isSilentConst, argNames, tempVarValue]`.
// NB: Assignment to var called `arguments` or `eval` is illegal in strict mode.
// This is relevant as it affects whether var is flagged as mutable or not.
const isConst = binding.isConst || (isStrict && (varName === 'arguments' || varName === 'eval'));
Expand Down

0 comments on commit c27b748

Please sign in to comment.