Loading ...
Sorry, an error occurred while loading the content.

2049JSLint Bug?

Expand Messages
  • Lindsay John Lawrence
    Mar 10, 2011
    • 0 Attachment
      Hello,

            Problem at line 9 character 7: Unexpected 'continue'.


      I now get an error like the above with loops that have a 'continue' of the form shown in the sample code below.

      Is this a bug in jslint or is it now enforcing some form I am not aware of?

      // --- start sample code ---
      var nop = function () {
        return;
      };

      var test = function () {
        var i;
        for (i=0; i<10; i+=1) {
          if (i<5) {
            continue;
          }
          nop();
        }
      };
      // --- end sample code ---

      Thanks in advancet,

      Lindsay





      [Non-text portions of this message have been removed]
    • Show all 24 messages in this topic