js/src/jit-test/tests/gc/bug-912734.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/gc/bug-912734.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +(function() {
     1.5 +    Object.defineProperty(this, "h2", {
     1.6 +        e: false,
     1.7 +        e: false,
     1.8 +        get: function() {
     1.9 +            return {}
    1.10 +        }
    1.11 +    })
    1.12 +})()
    1.13 +a2 = new Array
    1.14 +Object.create(a2);
    1.15 +(function() {
    1.16 +    Object.defineProperty(this, "t2", {
    1.17 +        e: true,
    1.18 +        e: RegExp(""),
    1.19 +        get: function() {
    1.20 +            return new Uint32Array(this.a2)
    1.21 +        }
    1.22 +    })
    1.23 +})()
    1.24 +r = (function() {
    1.25 +    for each(let c in []) {}
    1.26 +})()
    1.27 +var r = 1;
    1.28 +s = ""
    1.29 +print(s.match(r));
    1.30 +r.l
    1.31 +with(b = 3);
    1.32 +t2;
    1.33 +(function() {
    1.34 +    Object.defineProperty(a2, 3, {
    1.35 +        e: false,
    1.36 +        e: true,
    1.37 +        get: (function() {
    1.38 +            evalcx("[]", s.g)
    1.39 +        })
    1.40 +    })
    1.41 +})()
    1.42 +h2
    1.43 +r = RegExp("");
    1.44 +r.exec();
    1.45 +schedulegc(7);
    1.46 +t2;

mercurial