Closed Bug 644143 Opened 13 years ago Closed 13 years ago

Error "regular expression too complex" on www.bartexts.com

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 7
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 625600

People

(Reporter: tommy_the_2nd, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0

http://www.bartexts.com

If you goto this website, you can see that the page breaks in the head when calling google analytics.  Says the variable is undefined, but it is within a try{}catch{} and should catch the error.  I am noticing this on my work website as well on one of the pages.

Reproducible: Always

Steps to Reproduce:
1. goto http://www.bartexts.com
2. use firebug to see the error
3.
Actual Results:  
Error in the HEAD even though the undefined variable is in a try catch.

Expected Results:  
the error should be caught and ignored.
Assignee: nobody → general
Component: General → JavaScript Engine
Product: Firefox → Core
QA Contact: general → general
Version: unspecified → Trunk
I don't see any errors about undefined variables on this page.  I do see an error like this:

  Error: regular expression too complex
  Source File: http://www.bartexts.com/js/jquery-1.3.2.js
  Line: 19
Erg, yes you're absolutely right.  It was catching that correctly, it is that regex problem that is the problem.  I found this post:
http://forums.mozillazine.org/viewtopic.php?f=23&t=1971533

Not too helpful, but maybe upgrading jquery will help. thanks for confirming that though!
Depends on: 625600
Summary: Try catch is not catching. JS throws an error in the try for google analytics and breaks the page. → Error "regular expression too complex" on www.bartexts.com
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.