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

2034Re: [jslint] Re: has not been fully defined yet

Expand Messages
  • Kent Davidson
    Mar 9, 2011
    • 0 Attachment
      Ah. So the canonical error would be:

      function foo () {
      var dude = 20 * dude;
      }

      Another reason to avoid globals.

      Chers,

      -Kent.

      On Mar 9, 2011, at 2:19 PM, Douglas Crockford wrote:

      >
      > --- In jslint_com@yahoogroups.com, Kent Davidson <kent@...> wrote:
      > >
      > > I gotta chime here and agree with Douglas. However, I think jslint 2011-03-07 is broken:
      > >
      > > var dude = 20 * dude;
      > >
      > > fails to throw an error at all
      >
      > Global variables are weird and obey different rules.
      > JSLint already reports global variables.
      >
      > A statement like
      >
      > var GLOBAL = GLOBAL || {};
      >
      > actually makes sense at the global level.
      >
      >



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