1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/jaeger/bug704138.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +function TestCase(n, d, e, a) 1.5 + this.name=n; 1.6 +function reportCompare (expected, actual, description) { 1.7 + new TestCase 1.8 +} 1.9 +reportCompare(true, "isGenerator" in Function, "Function.prototype.isGenerator present"); 1.10 +var p = Proxy.create({ 1.11 + has : function(id) {} 1.12 +}); 1.13 +function test() { 1.14 + Object.prototype.__proto__=null 1.15 + if (new TestCase) 1.16 + Object.prototype.__proto__=p 1.17 +} 1.18 +test(); 1.19 +new TestCase; 1.20 +test()