Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / jit-test / tests / basic / testMethodWriteBarrier4.js
1 var z = 0;
2 function f() {
3     this.b = function() {};
4     this.b = undefined;
5     if (z++ > HOTLOOP)
6         this.b();
7 }
8
9 try {
10     for (var i = 0; i < HOTLOOP + 2; i++)
11         new f();
12 } catch (exc) {}