js/src/jit-test/tests/auto-regress/bug726799.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/bug726799.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +// Binary: cache/js-dbg-32-ebafee0cea36-linux
     1.5 +// Flags: -m -n
     1.6 +//
     1.7 +function tryItOut(code) {
     1.8 +    f = eval("(function(){" + code + "})")
     1.9 +    for (e in f()) {}
    1.10 +}
    1.11 +tryItOut("\
    1.12 +    for each(x in[0,0,0,0,0,0,0]) {\
    1.13 +        function f(b) {\
    1.14 +            Object.defineProperty(b,\"\",({t:f}))\
    1.15 +        }\
    1.16 +        for each(d in[(1),String,String,String,String,(0),String,(1),String]) {\
    1.17 +            try{\
    1.18 +                f(d);\
    1.19 +                yield\
    1.20 +            }catch(e){}\
    1.21 +        }\
    1.22 +    }\
    1.23 +")

mercurial