js/src/jit-test/tests/auto-regress/bug743094.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/auto-regress/bug743094.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,15 @@
     1.4 +// Binary: cache/js-dbg-32-a9a18824b4c1-linux
     1.5 +// Flags: --ion-eager
     1.6 +//
     1.7 +
     1.8 +var i = 0;
     1.9 +
    1.10 +gczeal(2);
    1.11 +function test() {
    1.12 +  if (i++ > 2500)
    1.13 +    return "function";
    1.14 +  var res = typeof (new test("1")) != 'function';
    1.15 +  return res ? "function" : "string";
    1.16 +}
    1.17 +
    1.18 +test();

mercurial