02:35
<devsnek>
what happens if you replace direct calls to eval with a single string argument with the equiv code inside that string argument
04:50
<Jack Works>
Does strict mode also applies? Or, any different between import related stuff?
17:15
<ljharb>
devsnek: if the code in eval worked, I’d expect it to work the same without the eval. The reverse might not be true.
17:21
<devsnek>
yeah I assume there's probably some small difference with like variable declarations or smth but idk
17:34
<bakkot>
strict mode var declarations aren't hoisted out of the eval, though sloppy mode var declarations are.
17:34
<bakkot>
also var declarations from eval can be delete'd, unlike normal var declarations
17:34
<bakkot>
otherwise pretty similar