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

PASSFAIL fails

Expand Messages
  • osteocosmosis
    The following 3-line script yields 1 message. I expected 2: /*jslint passfail: false, eqeqeq: true */ var table = new Array(27); var list = new Array(27); ==
    Message 1 of 3 , Jul 28 4:41 AM
      The following 3-line script yields 1 message. I expected 2:

      /*jslint passfail: false, eqeqeq: true */
      var table = new Array(27);
      var list = new Array(27);

      ==
      The message I get is, of course:
      Lint at line 2 character 19: Use the array literal notation [].
      var table = new Array(27);

      I'm using the WSH version, downloaded today.
    • Douglas Crockford
      ... When I try it I see two errors, not one.
      Message 2 of 3 , Jul 28 1:26 PM
        --- In jslint_com@yahoogroups.com, "osteocosmosis" <fredistic@...> wrote:
        >
        > The following 3-line script yields 1 message. I expected 2:
        >
        > /*jslint passfail: false, eqeqeq: true */
        > var table = new Array(27);
        > var list = new Array(27);
        >
        > ==
        > The message I get is, of course:
        > Lint at line 2 character 19: Use the array literal notation [].
        > var table = new Array(27);


        When I try it I see two errors, not one.
      • osteocosmosis
        I am confused. I still get one error from ... Lint at line 2 character 19: Use the array literal notation []. var table = new Array(27); ... /*jslint
        Message 3 of 3 , Jul 29 10:27 AM
          I am confused. I still get one error from

          > cscript C:\UTIL\jslint.js < x.js
          Lint at line 2 character 19: Use the array literal notation [].
          var table = new Array(27);

          > type x.js
          /*jslint passfail: false */
          var table = new Array(27);
          var list = new Array(27);

          > md5sum c:\util\jslint.js
          \aa06096de3f94dee9c23cf3d9273b902 *c:\\util\\jslint.js


          --- In jslint_com@yahoogroups.com, "Douglas Crockford" <douglas@...>
          wrote:
          > When I try it I see two errors, not one.
        Your message has been successfully submitted and would be delivered to recipients shortly.