1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/pic/callname-eager-this1.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,11 @@ 1.4 +this.name = "outer"; 1.5 + 1.6 +var sb = evalcx(''); 1.7 +sb.name = "inner"; 1.8 +sb.parent = this; 1.9 + 1.10 +function f() { 1.11 + assertEq(this.name, "outer"); 1.12 +} 1.13 + 1.14 +evalcx('with(this) { ff = parent.f; }; (function() { eval(""); for(var i=0; i<10; i++) { ff() } })()', sb);