js/src/jit-test/tests/auto-regress/bug759306.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/bug759306.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +// |jit-test| error:InternalError
     1.5 +
     1.6 +// Binary: cache/js-dbg-32-4ce3983a43f4-linux
     1.7 +// Flags:
     1.8 +//
     1.9 +
    1.10 +function assertEq(setter) {
    1.11 +        if (setter > 10)
    1.12 +            return {assertEq: 3.3};
    1.13 +        return {__proto__: assertEq(setter + 1)};
    1.14 +    }
    1.15 +function testX() {
    1.16 +  var x = 2;
    1.17 +  var local0 = x;
    1.18 +  return { local0: local0 };
    1.19 +}
    1.20 +var resultsX = testX();
    1.21 +assertEq(resultsX.local0, 2);
    1.22 +gczeal(2);
    1.23 +assertEq(new (Proxy.createFunction({}, function(){}, function(){})), undefined);

mercurial