Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 // Test no assert or crash from outer recorders (bug 465145)
2 function testBug465145() {
3 this.__defineSetter__("x", function(){});
4 this.watch("x", function(){});
5 y = this;
6 for (var z = 0; z < 2; ++z) { x = y };
7 this.__defineSetter__("x", function(){});
8 for (var z = 0; z < 2; ++z) { x = y };
9 }
11 function testTrueShiftTrue() {
12 var a = new Array(5);
13 for (var i=0;i<5;++i) a[i] = "" + (true << true);
14 return a.join(",");
15 }
16 assertEq(testTrueShiftTrue(), "2,2,2,2,2");