js/src/jit-test/tests/baseline/bug847484.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/baseline/bug847484.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,14 @@
     1.4 +function TestCase(n, d) {}
     1.5 +function reportCompare() {
     1.6 +    new TestCase;
     1.7 +}
     1.8 +Object.defineProperty(Object.prototype, "name", {});
     1.9 +reportCompare();
    1.10 +try {
    1.11 +    function TestCase( n, d ) {
    1.12 +	this.name = n;
    1.13 +	this.description = d;
    1.14 +    }
    1.15 +    reportCompare();
    1.16 +    reportCompare();
    1.17 +} catch(exc3) { assertEq(0, 1); }

mercurial