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 // Handle bailing from a constructor.
3 var confuzzle = 0;
5 function BailFromConstructor() {
6 this.x = "cats";
7 this.y = confuzzle + 5;
8 return 4;
9 }
11 function f() {
12 var x;
13 for (var i = 0; i < 100; i++) {
14 if (i == 99)
15 confuzzle = undefined;
16 x = new BailFromConstructor();
17 assertEq(typeof(x), "object");
18 }
19 }
21 f();