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

386Re: Bug: unintialized variable with name 'constructor' gives strange error

Expand Messages
  • Douglas Crockford
    Mar 4, 2009
    • 0 Attachment
      --- In jslint_com@yahoogroups.com, "bertbelder" <bertbelder@...> wrote:
      >
      > It seems that using a variable named "constructor" that is not declared (which in itself is wrong off course) always produces a strange error. The rhino version of JSLint even crashes when you make this mistake.

      > Trying to lint this:
      > constructor = 1;
      >
      > JSLint produces the error:
      > Problem at line 1 character 15: a.push is not a function

      Thanks for the report. Please try it again.
    • Show all 4 messages in this topic