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

Possible bug in global directive?

Expand Messages
  • spence.randall@ymail.com
    When entering the following code: /*global DOES_NOT_EXIST:true*/ Jslint gives the following error report: Error: Problem at line 1 character 24: Expected */
    Message 1 of 2 , Jun 2, 2011
    • 0 Attachment
      When entering the following code:

      /*global DOES_NOT_EXIST:true*/

      Jslint gives the following error report:

      Error:

      Problem at line 1 character 24: Expected '*/' and instead saw ':'.

      /*global DOES_NOT_EXIST:true*/

      Problem at line 1 character 25: Expected an assignment or function call and instead saw an expression.

      /*global DOES_NOT_EXIST:true*/

      Problem at line 1 character 29: Expected ';' and instead saw '*/'.

      /*global DOES_NOT_EXIST:true*/

      Problem at line 1 character 29: Expected an identifier and instead saw '*/'.

      /*global DOES_NOT_EXIST:true*/

      Problem at line 1 character 29: Stopping. (100% scanned).
    • Douglas Crockford
      ... Thanks. Please try it now.
      Message 2 of 2 , Jun 2, 2011
      • 0 Attachment
        --- In jslint_com@yahoogroups.com, "spence.randall@..." <randall@...> wrote:
        >
        > When entering the following code:
        >
        > /*global DOES_NOT_EXIST:true*/
        >
        > Jslint gives the following error report:
        >
        > Error:
        >
        > Problem at line 1 character 24: Expected '*/' and instead saw ':'.

        Thanks. Please try it now.
      Your message has been successfully submitted and would be delivered to recipients shortly.