js/src/jit-test/tests/basic/bug728609.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/basic/bug728609.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +var lfcode = new Array();
     1.5 +lfcode.push("\
     1.6 +test();\
     1.7 +function test() {\
     1.8 +  function removeAllProperties(o) {\
     1.9 +    bar() = thaw, patterns;\
    1.10 +  }\
    1.11 +  var o = {};\
    1.12 +  o.first = { toSource: function() { removeAllProperties(o); } };\
    1.13 +  return o.toSource();\
    1.14 +}\
    1.15 +");
    1.16 +lfcode.push("test();");
    1.17 +gczeal(4);
    1.18 +while (true) {
    1.19 +        var file = lfcode.shift(); if (file == undefined) { break; }
    1.20 +                loadFile(file);
    1.21 +}
    1.22 +function loadFile(lfVarx) {
    1.23 +        try {
    1.24 +                        evaluate(lfVarx);
    1.25 +        } catch (lfVare) {      }
    1.26 +}

mercurial