Source code

Revision control

Copy as Markdown

Other Tools

function testMethodSet() { // bug 503198
function o() { return 'o'; }
function k() { return 'k'; }
var x;
for (var i = 0; i < 10; i++) {
x = {};
x.o = o;
x.k = k;
}
return x.o() + x.k();
}
assertEq(testMethodSet(), "ok");