js/src/jit-test/tests/jaeger/bug600424.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/bug600424.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,14 @@
     1.4 +// vim: set ts=8 sts=4 et sw=4 tw=99:
     1.5 +function f(a) {
     1.6 +    var x = {
     1.7 +        g: function () {
     1.8 +            return this.a;
     1.9 +        }
    1.10 +    };
    1.11 +    x.g.prototype.a = a;
    1.12 +    assertEq(x.g.prototype.a, a);
    1.13 +    return x;
    1.14 +}
    1.15 +f(1);
    1.16 +f(2);
    1.17 +f(3);

mercurial