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

Re: [jslint] Re: No RegExp Warning When Used With Replace

Expand Messages
  • Felix E. Klee
    ... You could apply that to any of the rules that JSLint enforces: If you use X, then you should know what it will Y.
    Message 1 of 9 , Sep 26, 2012
    • 0 Attachment
      On Wed, Sep 26, 2012 at 6:15 PM, Joe Hansche <madcoder@...> wrote:
      > If you use regexp, then you should know what it will match.

      You could apply that to any of the rules that JSLint enforces:

      If you use X, then you should know what it will Y.
    • Joe Hansche
      ... I agree :) Yet, JSLint specifically makes that assumption regarding allowing this in a function expression. ... [Non-text portions of this message have
      Message 2 of 9 , Sep 26, 2012
      • 0 Attachment
        On Sep 26, 2012 12:22 PM, "Felix E. Klee" <felix.klee@...> wrote:
        >
        >
        >
        > On Wed, Sep 26, 2012 at 6:15 PM, Joe Hansche <madcoder@...> wrote:
        > > If you use regexp, then you should know what it will match.
        >
        > You could apply that to any of the rules that JSLint enforces:
        >
        > If you use X, then you should know what it will Y.

        I agree :)

        Yet, JSLint specifically makes that assumption regarding allowing "this" in
        a function expression.

        >
        >


        [Non-text portions of this message have been removed]
      Your message has been successfully submitted and would be delivered to recipients shortly.