Closed
Bug 256798
Opened 20 years ago
Closed 20 years ago
JS regexp zero-width positive lookahead broken by bug 254296's patch
Categories
(Core :: JavaScript Engine, defect, P1)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
mozilla1.8alpha4
People
(Reporter: brendan, Assigned: brendan)
References
()
Details
(4 keywords)
Attachments
(2 files)
1.20 KB,
patch
|
shaver
:
review+
chofmann
:
approval-aviary+
chofmann
:
approval1.7.5+
|
Details | Diff | Splinter Review |
2.60 KB,
text/plain
|
Details |
The patch for bug 254296 regressed zero-width positive lookehead assertions: js> /(?:(a)+)/("baaaa") aaaa,a js> /(?=(a+))/("baaabac") ,aaa js> /b(?=(a+))/("baaabac") b,aaa js> /b(?=(b+))/("baaabac") null The last case should return ["b", "b"]. Must-fix for branches and trunk. /be
Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Flags: blocking1.8a4+
Flags: blocking1.7.3+
Flags: blocking-aviary1.0PR+
Priority: -- → P1
Target Milestone: --- → mozilla1.8alpha4
Assignee | ||
Comment 1•20 years ago
|
||
for a(?=b), we want to fail fast if SimpleMatch fails, whether or not it consumed the entire zero-width assertion. Not so for (?!), which was fixed last time. /be
Assignee | ||
Updated•20 years ago
|
Attachment #157203 -
Flags: review?(shaver)
Comment on attachment 157203 [details] [diff] [review] fix Curses! r=shaver
Attachment #157203 -
Flags: review+
Assignee | ||
Updated•20 years ago
|
Attachment #157203 -
Flags: review?(shaver)
Attachment #157203 -
Flags: approval1.7.3?
Attachment #157203 -
Flags: approval-aviary?
Comment 3•20 years ago
|
||
Comment on attachment 157203 [details] [diff] [review] fix a=chofmann for aviary and 1.7.3
Attachment #157203 -
Flags: approval1.7.3?
Attachment #157203 -
Flags: approval1.7.3+
Attachment #157203 -
Flags: approval-aviary?
Attachment #157203 -
Flags: approval-aviary+
Assignee | ||
Comment 4•20 years ago
|
||
Fixed on trunk and branches. /be
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Keywords: fixed-aviary1.0,
fixed1.7
Resolution: --- → FIXED
Comment 5•20 years ago
|
||
Comment on attachment 157203 [details] [diff] [review] fix a=chofmann for aviary and 1.7.3
Updated•20 years ago
|
Keywords: fixed1.7 → fixed1.7.x
Comment 6•19 years ago
|
||
thanks to be
Comment 7•19 years ago
|
||
js1_5/Regress/regress-256798.js checked in.
Comment 8•19 years ago
|
||
javascript:/b(?=(b+))/.exec("baaabac") + '' returns 'null' instead of 'b,b' in sm 1.7.6 and trunk, ff 1.0x and trunk. Should this be reopened?
QA Contact: pschwartau → moz
Updated•19 years ago
|
Flags: testcase+
Assignee | ||
Comment 9•19 years ago
|
||
(In reply to comment #8) > javascript:/b(?=(b+))/.exec("baaabac") + '' returns 'null' instead of 'b,b' in > sm 1.7.6 and trunk, ff 1.0x and trunk. Should this be reopened? Please file a new bug or bugs. It looks like a bunch of stuff to-do with zero-width positive and negative lookahead is broken: js> /(?!a)b/('zzzabzzz') ab mrbkap should take these bug(s) -- he didn't make this mess but he can fix it. /be
Assignee | ||
Comment 10•19 years ago
|
||
(In reply to comment #9) See bug 322836. /be
You need to log in
before you can comment on or make changes to this bug.
Description
•