js/src/jit-test/tests/basic/bug763440.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/basic/bug763440.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +var summary = '';
     1.5 +var actual = '';
     1.6 +gcPreserveCode()
     1.7 +function TestCase(n, d, e, a) {
     1.8 +  this.name=n;
     1.9 +}
    1.10 +function reportCompare (expected, actual, description) {
    1.11 +  new TestCase
    1.12 +}
    1.13 +reportCompare(true, eval++, "Function.prototype.isGenerator present");
    1.14 +var p = Proxy.create({
    1.15 +    has : function(id) {}
    1.16 +});
    1.17 +Object.prototype.__proto__ = p;
    1.18 +new TestCase;
    1.19 +var expect = '';
    1.20 +reportCompare(expect, actual, summary);
    1.21 +gczeal(4);
    1.22 +try {
    1.23 +  evalcx(".");
    1.24 +} catch (e) {}
    1.25 +reportCompare(expect, actual, summary);

mercurial