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 var funProto = Function.prototype;
2 assertEq(Object.getOwnPropertyDescriptor(funProto, "prototype"), undefined);
4 function Point(x, y) { this.x = x; this.y = y; }
6 var YAxisPoint = Point.bind(null, 0);
8 assertEq(YAxisPoint.prototype, undefined);
10 var oldPoint;
11 for (var i = 0, sz = 9; i < sz; oldPoint = point, i++)
12 {
13 var point = new YAxisPoint(5);
14 assertEq(point === oldPoint, false);
15 assertEq(point.x, 0);
16 assertEq(point.y, 5);
17 assertEq(Object.getOwnPropertyDescriptor(funProto, "prototype"), undefined);
18 assertEq(Object.getOwnPropertyDescriptor(YAxisPoint, "prototype"), undefined);
19 }