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

Re: [jslint] Re: option.undef

Expand Messages
  • Stefan Weiss
    Hello Aseem. I agree with your post, except for one nitpick: ... That isn t a function declaration, so it won t be hoisted, and it won t be available at
    Message 1 of 9 , Dec 4, 2009
    • 0 Attachment
      Hello Aseem.

      I agree with your post, except for one nitpick:

      On 04/12/09 19:09, Aseem wrote:
      > Incidentally, it's vulnerable to breaking if the function declaration is tweaked:
      >
      > bar();
      > var bar = function () {
      > // ...
      > };

      That isn't a function declaration, so it won't be hoisted, and it won't
      be available at runtime. It's a function *expression*.

      ACK, otherwise.

      cheers,
      stefan
    Your message has been successfully submitted and would be delivered to recipients shortly.