js/src/jit-test/tests/ion/bug762547.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/ion/bug762547.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,14 @@
     1.4 +if (typeof(gcPreserveCode) == "function")
     1.5 +	gcPreserveCode();
     1.6 +
     1.7 +function testStrict() {
     1.8 +    var n = 10, a = [];
     1.9 +    for (var i = 0; i < 10; ++i) {
    1.10 +        a[0] = (gc());
    1.11 +        a[1] = (n !== 10);
    1.12 +        a[0x2 ] = (n === null);
    1.13 +        a[3] = (n == null);
    1.14 +    }
    1.15 +    return  ;  
    1.16 +}
    1.17 +testStrict();

mercurial