douglascrockford/JSLint — Issue #109: Labels are recognized as ternary operators.
Author: GlitchMr
Created: 2012-03-06 16:12:24+00:00
State: open

Following code causes "Problem at line 3 character 6: Unexpected ':'." error.

// This assignment is made to avoid other error messages.
var a = 1;
label: for (;;) {
if (a) {
break label;
}
}