Closed Bug 1008895 Opened 10 years ago Closed 10 years ago

InternalError: an error occurred while executing regular expression

Categories

(Core :: JavaScript Engine, defect)

29 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 998785
Tracking Status
firefox29 --- affected
firefox30 --- affected
firefox32 --- affected

People

(Reporter: amit5148, Unassigned)

References

Details

(Keywords: regression, testcase)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36

Steps to reproduce:

Calling string.replace.
Sample test case is available at http://jsfiddle.net/6GT6K/1/


Actual results:

Works fine in Firefox 28.0.0.
In firefox 29.0.1 got error saying "InternalError: an error occurred while executing regular expression"


Expected results:

It should have trimmed the string without any error.
OS: Linux → All
Hardware: x86_64 → All
Status: UNCONFIRMED → NEW
Component: Untriaged → JavaScript Engine
Ever confirmed: true
Product: Firefox → Core
Regressed from Bug 953013.
There is currently not much we can do about this. Previously our regexp engine just crashed or reported no matches, without signaling there is something wrong. So behaviour in FF28 is also incorrect!

Now there is improvement coming! Hopefully in FF31 we will have the same regexp jit as chrome. So we will be able to run those regexp, without reporting an error.
This is being tracked in bug 976446
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.