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

169Re: Line Breaking Error

Expand Messages
  • Douglas Crockford
    Aug 15, 2008
    • 0 Attachment
      --- In jslint_com@yahoogroups.com, "Jacob Davenport" <jacob@...> wrote:
      >
      > This produces an error:
      >
      > function a() {
      > return (
      > doStuff(m, n) +
      > "someString"
      > );
      > }

      JSLint does not like to break after a string literal. This is protect
      you from semicolon insertion. You can either turn on the sloppy line
      breaking option, or you can break you statement differently. For example,

      function a() {
      return doStuff(m, n) +
      "someString";
      }
    • Show all 2 messages in this topic