diff --git a/lib/instrument/modify.js b/lib/instrument/modify.js index 891e65ba..fac09462 100644 --- a/lib/instrument/modify.js +++ b/lib/instrument/modify.js @@ -106,10 +106,10 @@ function modifyAst(ast, filename, isCommonJs, isStrict, sources, evalState) { // Create program block const programBlock = createAndEnterBlock(blockName, true, state); state.programBlock = programBlock; - // TODO: If code is a script or in indirect `(0, eval)(...)`, + // TODO: If code is a script or in indirect `(0, eval)(...)` in sloppy mode, // `var` declarations and function declarations (including async functions + generator functions) // create globals, not local bindings. - // In direct `eval()` they create bindings in hoist block external to the `eval()`. + // In sloppy-mode direct `eval()` they create bindings in hoist block external to the `eval()`. // So in both cases, there shouldn't be a hoist block. state.currentHoistBlock = programBlock;