From 1e1458ccc48c82a08e4298fbcda7d6ab9fd8605a Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Sat, 2 Dec 2023 17:30:43 +0000 Subject: [PATCH] Remove outdated code comment [nocode] --- lib/instrument/visitors/eval.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/instrument/visitors/eval.js b/lib/instrument/visitors/eval.js index 2b2cf168..5634d74f 100644 --- a/lib/instrument/visitors/eval.js +++ b/lib/instrument/visitors/eval.js @@ -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;