michael@0: var summary = ''; michael@0: var actual = ''; michael@0: gcPreserveCode() michael@0: function TestCase(n, d, e, a) { michael@0: this.name=n; michael@0: } michael@0: function reportCompare (expected, actual, description) { michael@0: new TestCase michael@0: } michael@0: reportCompare(true, eval++, "Function.prototype.isGenerator present"); michael@0: var p = Proxy.create({ michael@0: has : function(id) {} michael@0: }); michael@0: Object.prototype.__proto__ = p; michael@0: new TestCase; michael@0: var expect = ''; michael@0: reportCompare(expect, actual, summary); michael@0: gczeal(4); michael@0: try { michael@0: evalcx("."); michael@0: } catch (e) {} michael@0: reportCompare(expect, actual, summary);