Debian Codegraph @

js/src/jit-test/tests/ion/nursery-getter-setter2.js

raw
1 function g(o, i) {
2 o.foo = i;
3 assertEq(o.foo, i + 1);
4 }
5 function f() {
6 var o2 = Object.create({get foo() { return this.x; }, set foo(x) { this.x = x + 1; }});
7 for (var i=0; i<1200; i++) {
8 g(o2, i);
9 }
10 }
11 f();