CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006
    Posts
    27

    HELP: Strict JavaScript Syntax Checker Verifier

    Two quick questions:

    1. I really love Mozilla Firefox's javascript.options.strict mode (type about:config in addressbar). However it still doesn't pick up on certain things such as making it compulsory to have semi-colon as a statement terminator. I have hundreds of organically grown JavaScript files that are millions lines long. They are not written by me but by former employees and I've been handed the job of debugging & fixing their code. Does anyone know of a good Very strict JavaScript syntax verifier checker? What is the best JavaScript IDE out there?

    2. What happens if I keep on writing:

    var control = new Control();
    var control = new Control();
    var control = new Control();

    500 times? Will this cause a memory leak? Or will the previous object be deleted since the reference is lost? Or is it handled differently in IE & FF?

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: HELP: Strict JavaScript Syntax Checker Verifier

    For debugging, the best way is to use the Error Console within Firefox, or FireBug.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured