1 2 3 4 5 6 7 8 9 10 11 12 13 14
Array.prototype.__defineSetter__(32, function() { print("Hello from arbitrary JS");}); var UBound = 0; var expect= ''; var expectedvalues = []; for (var j=0; j < 10; j++) { addThis(); addThis(); addThis(); addThis(); } function addThis() { expectedvalues[UBound] = expect; UBound++; }