1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/pic/callname-with.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +var res; 1.5 +var x = 0; 1.6 + 1.7 +function f() { 1.8 + x = {x: 1, f: function() { res = this.x; }}; 1.9 + with(x) { 1.10 + g = function() { 1.11 + eval(""); 1.12 + f(); 1.13 + } 1.14 + g(); 1.15 + } 1.16 +} 1.17 +f(); 1.18 +assertEq(res, 1);