17:46
<Chris de Almeida>
nicolo-ribaudo: is there a repo yet for Avoid capturing lexical context in indirect eval ?
18:58
<Justin Ridgewell>

here's a rather stark example:

const unfrozen = Array.from({ length: 10000 }, (_, i) => i);
const frozen = Object.freeze([...unfrozen]);
fn = arr => arr.slice().concat("FIN");
let result;

result = fn(unfrozen); // 10.787 ops/ms
result = fn(frozen); // 1.427 ops/ms
A slightly more complex example: https://jsbench.github.io/#7802fbd8f3d46d7fef9d6009e65fd4bd