js/src/jit-test/tests/pic/callname-eager-this1.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:76b54e08fedb
1 this.name = "outer";
2
3 var sb = evalcx('');
4 sb.name = "inner";
5 sb.parent = this;
6
7 function f() {
8 assertEq(this.name, "outer");
9 }
10
11 evalcx('with(this) { ff = parent.f; }; (function() { eval(""); for(var i=0; i<10; i++) { ff() } })()', sb);

mercurial