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

77scope bug? catch (e) "e already defined"

Expand Messages
  • wleingang
    Jun 16, 2008
      Hi. Has anyone run into this before?

      try {
      this.var1 = "test";
      }catch (e) {}

      try {
      this.var2 = "test";
      }catch (e) {}

      On the second catch, JSLint thinks that e is already defined... even
      though from that scope there is no way it is already defined. Unless I
      don't understand this should be valid code right?

    • Show all 7 messages in this topic