Debian Codegraph @

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

raw
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);