What steps will reproduce the problem?
1. In js2-mode, edit a file with this function:
function tst() {
var result = "";
var as = [1, 2];
var bs = [10, 20];
iter_label: for (var ai in as) {
var a = as[ai];
for (var bi in bs) {
var b = bs[bi];
if (a+b == 11)
continue iter_label;
result = result + (a + b) + " ";
}
}
alert(result);
}
What is the expected output? What do you see instead?
2. Expected no complaint; got the following gripe instead:
"continue can only use labels of iteration statements"
What version of the product are you using? On what operating system?
20080521
Windows XP
GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) of 2008-03-26 on RELEASE
Please provide any additional information below.
Spec and Firefox 3 RC seem to be fine with given continue/label
syntax.
Original issue reported on code.google.com by kenneth....@gmail.com on 28 May 2008 at 3:22
Original issue reported on code.google.com by
kenneth....@gmail.com
on 28 May 2008 at 3:22