js/src/jit-test/tests/ion/bug787921.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/ion/bug787921.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,13 @@
     1.4 +// |jit-test| error: InternalError: too much recursion
     1.5 +function TestCase(n, d, e, a) {
     1.6 +  this.bugnumber = typeof(BUGNUMER) != 'undefined' ? BUGNUMBER : '';
     1.7 +  this.type = (typeof window == 'undefined' ? 'shell' : 'browser');
     1.8 +  gTestcases[gTc++] = this;
     1.9 +  if (optionName) {}
    1.10 +  {} {} {} // Seems to be required to crash
    1.11 +}
    1.12 +function f() {}
    1.13 +function g(n, h) {
    1.14 +    var t = g(TestCase.toSource());
    1.15 +}
    1.16 +g(80, f);

mercurial