js/src/jit-test/tests/gc/bug-945275.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/gc/bug-945275.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,11 @@
     1.4 +function TestCase(n) {
     1.5 +  this.name = undefined;
     1.6 +  this.description = undefined;
     1.7 +}
     1.8 +gczeal(7,1);
     1.9 +eval("\
    1.10 +function reportCompare() new TestCase;\
    1.11 +reportCompare();\
    1.12 +Object.defineProperty(Object.prototype, 'name', {});\
    1.13 +reportCompare();\
    1.14 +");

mercurial