js/src/jit-test/tests/auto-regress/bug488015.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/bug488015.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +// Binary: cache/js-dbg-64-e1257570fef8-linux
     1.5 +// Flags:
     1.6 +//
     1.7 +var a = [];
     1.8 +function addEventListener(e, f, g)
     1.9 +{
    1.10 +  a.push(f);
    1.11 +}
    1.12 +function setTimeout(f, t)
    1.13 +{
    1.14 +  a.push(f);
    1.15 +}
    1.16 +var b;
    1.17 +this.document = {};
    1.18 +function e(w) {
    1.19 +  addEventListener("mousedown", d, true);
    1.20 +  function d() {
    1.21 +    var d;
    1.22 +    w.setTimeout(function() {
    1.23 +        b(d);
    1.24 +      }, 0);
    1.25 +  }
    1.26 +  function b(d){
    1.27 +    w.document;  /* Crash Here!! */
    1.28 +  }
    1.29 +}
    1.30 +e(this);
    1.31 +a[0]();
    1.32 +a[1]();

mercurial