js/src/jit-test/tests/auto-regress/bug909441.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/bug909441.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +// |jit-test| error: too much recursion
     1.5 +function f(code) {
     1.6 +    try {
     1.7 +        g = Function(code)
     1.8 +    } catch (e) {}
     1.9 +    g()
    1.10 +}
    1.11 +f("\
    1.12 +    Object.defineProperty(this,\"x\",{\
    1.13 +        get: function(){\
    1.14 +            evaluate(\"Array(x)\",{\
    1.15 +                newContext:true,\
    1.16 +                catchTermination:(function(){})\
    1.17 +            })\
    1.18 +        }\
    1.19 +    })\
    1.20 +");
    1.21 +f("x");
    1.22 +f(")");
    1.23 +f("x");

mercurial