Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 // Some testing for JSOP_NEW.
2 function foo(prop) {
3 this.name = "Foo";
4 this.prop = prop;
5 return this;
6 }
8 // Construct an object with a unique assignation to a property.
9 function f(i) {
10 var x = new foo(i);
11 return x.prop;
12 }
14 // Assert that a unique object really was created.
15 for (var i = 0; i < 100; i++)
16 assertEq(f(i), i);