1 2 3 4 5 6
let s = "function foo() {\n"; let max = 65536; for (let i = 0; i < max; i++) s += "let ns" + i + " = "+ i +";\n"; s += "};"; eval(s);