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