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

Re: JSLINT.errors[] is empty, but error detected in JSLINT.report()

Expand Messages
  • Douglas Crockford
    ... The unused analysis is done in the function report.
    Message 1 of 2 , Jul 21, 2011
    • 0 Attachment
      --- In jslint_com@yahoogroups.com, Jérôme DESPATIS <jerome@...> wrote:
      > I come back again an a problem I don't understand well:
      >
      > I'm testing this function on jslint.com:
      >
      > function test(data, args) {
      > "use strict";
      >
      > var b = data;
      > }
      >
      > JSLint reports an error "unused variable for args and b", I'm ok with that,
      >
      > but Firebug tells me JSLINT.errors is an empty array after the analysis
      > => why this array doesn't contain the error reported by JSLINT.report() ?


      The unused analysis is done in the function report.
    Your message has been successfully submitted and would be delivered to recipients shortly.