Closed
Bug 212395
Opened 22 years ago
Closed 21 years ago
Bad Flag field assignment in javascript.regexp.NativeRegExp
Categories
(Rhino Graveyard :: Core, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
1.5R5
People
(Reporter: olivier.oeuillot, Assigned: rogerl)
Details
Attachments
(1 file)
762 bytes,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
Build Identifier:
org.mozilla.javascript.regexp.NativeRegExp
public void init(Context cx, Scriptable scope, String str, String global,
boolean flat) {
.....
this.parenCount = state.parenCount;
this.flags = flags; <<<<<<<< NO effect !
this.lastIndex = 0;
....
}
Solution ? :
public void init(Context cx, Scriptable scope, String str, String global,
boolean flat) {
this.source = str.toCharArray();
int length = str.length();
int flags = 0; <<<<< int declaration !
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1•22 years ago
|
||
Assigning this one to Roger -
Assignee: nboyd → rogerl
Summary: Bad Flag field assignment → Bad Flag field assignment in javascript.regexp.NativeRegExp
Comment 2•21 years ago
|
||
Comment 3•21 years ago
|
||
I committed the fix.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•