1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/bug705895-2.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,13 @@ 1.4 +// |jit-test| error: TypeError 1.5 +function f(o) { 1.6 + for (j = 0; j < 9; j++) { 1.7 + if (j) { 1.8 + o.__proto__ = null 1.9 + } 1.10 + for (v in o) {} 1.11 + } 1.12 +} 1.13 +for (i = 0; i < 9; i++) { 1.14 + (new Boolean).__proto__.__defineGetter__("toString", function() {}) 1.15 + f(Boolean.prototype) 1.16 +}