1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/function-tosource-bug779694.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,8 @@ 1.4 +// This test creates poorly compressible input, which tests certain paths in 1.5 +// source code compression. 1.6 +var x = ""; 1.7 +for (var i=0; i<400; ++i) { 1.8 + x += String.fromCharCode(i * 289); 1.9 +} 1.10 +var s = "'" + x + "'"; 1.11 +assertEq(Function("evt", s).toString(), "function anonymous(evt) {\n" + s + "\n}");