Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
2 expected = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,';
3 function slice(a, b) {
4 return expected;
5 }
6 function f() {
7 var length = 4;
8 var index = 0;
9 function get3() {
10 if (length - index < 3)
11 return null;
12 return slice(index, ++index);
13 }
14 var bytes = null;
15 while (bytes = get3()) { }
16 }
17 f();