js/src/jit-test/tests/jaeger/bug583672.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/bug583672.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +(function () {
     1.5 +    function f()
     1.6 +    {
     1.7 +        this.y = w
     1.8 +        this.y = (void 0)
     1.9 +        Object
    1.10 +    }
    1.11 +    for (a in [0, 0, 0, 0])
    1.12 +    {
    1.13 +        new f
    1.14 +    }
    1.15 +    let w = {}
    1.16 +})()
    1.17 +
    1.18 +/* Make sure that MICs don't have the same bug. */
    1.19 +x = Object();
    1.20 +(function () {
    1.21 +    function f()
    1.22 +    {
    1.23 +        x = w
    1.24 +        x = (void 0)
    1.25 +        Object
    1.26 +    }
    1.27 +    for (a in [0, 0, 0, 0])
    1.28 +    {
    1.29 +        new f
    1.30 +    }
    1.31 +    let w = {}
    1.32 +})()
    1.33 +/* Don't assert. */

mercurial