bug687768.js (317B)
1 expected = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,'; 2 function slice(a, b) { 3 return expected; 4 } 5 function f() { 6 var length = 4; 7 var index = 0; 8 function get3() { 9 if (length - index < 3) 10 return null; 11 return slice(index, ++index); 12 } 13 var bytes = null; 14 while (bytes = get3()) { } 15 } 16 f();