Skip to content

Commit

Permalink
Remove outdated code comment [nocode]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Dec 2, 2023
1 parent 0737cdf commit 1e1458c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/instrument/visitors/eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,6 @@ function instrumentEvalCall(callNode, block, fn, isStrict, canUseSuper, superIsP
// because if they're renamed, they would become accessible to `eval()` when they weren't before.
// `this` should not be frozen internally, as it can be replaced with a variable
// in a class constructor when `super()` is transpiled.
// For `super` and `new.target`, the var name can't actually be frozen, but flagged here
// as frozen anyway, to indicate that replacement var name should be prefixed with `_`.
// Frozen `new.target` is not currently supported.
// https://github.com/overlookmotel/livepack/issues/448
if (varName !== 'this' && !binding.isFrozenName) {
binding.isFrozenName = true;
binding.trails.length = 0;
Expand Down

0 comments on commit 1e1458c

Please sign in to comment.