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

Re: Why does my Array usage halt jslint

Expand Messages
  • Douglas Crockford
    ... var a = [ one , two , three ]; Smaller, faster, better. Just fix your code.
    Message 1 of 2 , Apr 21, 2010
    • 0 Attachment
      --- In jslint_com@yahoogroups.com, TIM FULCHER <tfulcher@...> wrote:

      > I'm running a slightly modified jslint over a bunch of our javascript files and have noticed that if our code defines an array such as
      >
      > var a = new Array("one","two","three");
      >
      > Then jslint indicates the error but then terminates further processing with a
      > " reason=Stopping, unable to continue. (49% scanned) "    message
      >
      > I can appreciate the array definition could be done better but I'm a bit perplexed why lint terminates because of it ???


      var a = ["one", "two", "three"];

      Smaller, faster, better.

      Just fix your code.
    Your message has been successfully submitted and would be delivered to recipients shortly.