summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/function-tosource-bug779694.js
blob: 782b2594bcc02f19b6bb6b5c894c7609d40ffc6a (plain)
1
2
3
4
5
6
7
8
// This test creates poorly compressible input, which tests certain paths in
// source code compression.
var x = "";
for (var i=0; i<400; ++i) {
    x += String.fromCharCode(i * 289);
}
var s = "'" + x + "'";
assertEq(Function("evt", s).toString(), "function anonymous(evt\n) {\n" + s + "\n}");