js/src/jit-test/tests/jaeger/bug659439.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/jaeger/bug659439.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +function bind(f) {
     1.5 +    return f.call.apply(f.bind, arguments);
     1.6 +};
     1.7 +function h(a, b) {
     1.8 +    a.x;
     1.9 +}
    1.10 +function g(a, b) {
    1.11 +    a.x = b;
    1.12 +    h(a);
    1.13 +}
    1.14 +function f() {
    1.15 +    for(var i=0; i<20; i++) {
    1.16 +        g.call(this, {}, bind(function(){}));
    1.17 +    }
    1.18 +}
    1.19 +f();

mercurial