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 function getTestCaseResult(expected, actual) {
2 if (actual != expected)
3 return Math.abs(actual - expected) <= 1E-10;
4 }
5 function InstanceOf(object, constructor) {
6 while ( object != null )
7 object = object.__proto__;
8 }
9 function WorkerBee () {}
10 function Engineer () {}
11 Engineer.prototype = new WorkerBee();
12 var pat = new Engineer();
13 getTestCaseResult(pat.__proto__.__proto__.__proto__.__proto__ == Object.prototype);
14 getTestCaseResult(InstanceOf(pat, Engineer));
15 evaluate("getTestCaseResult( Object.prototype.__proto__ );", { compileAndGo: true });