Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
1 // |jit-test|
3 this.name = "outer";
4 var sb = evalcx('');
5 sb.name = "inner";
6 sb.parent = this;
7 function f() { return this.name; }
8 assertEq(evalcx('this.f = parent.f;\n' +
9 'var s = "";\n' +
10 'for (i = 0; i < 10; ++i)\n' +
11 ' s += f();\n' +
12 's',
13 sb),
14 "outerouterouterouterouterouterouterouterouterouter");