Closed
Bug 587964
Opened 14 years ago
Closed 14 years ago
TM: out-of-bounds string index returns empty string
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | beta7+ |
People
(Reporter: jandem, Assigned: dvander)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
5.04 KB,
patch
|
luke
:
review+
|
Details | Diff | Splinter Review |
There is one difference between JM/TM on the Sputnik tests, RegExp-test S15.10.2.10_A5.1_T1.js. I asked cdleary about it, but it's not related to YARR. The test case can be reduced to:
var s = "12345";
for(var i=0; i<7; i++) {
print(s[i].length);
}
./js output (also ./js -m on JM-branch):
1
1
1
1
/home/jan/test.js:4: TypeError: s[i] is undefined
./js -j output:
1
1
1
1
0
Reporter | ||
Comment 1•14 years ago
|
||
The output I posted is wrong -- there should be an extra 1 and an extra 0. I think the problem is clear though.
Reporter | ||
Comment 2•14 years ago
|
||
set blocking-2.0 flag, as this may break some websites.
blocking2.0: --- → ?
Updated•14 years ago
|
blocking2.0: ? → beta6+
![]() |
Assignee | |
Comment 5•14 years ago
|
||
![]() |
||
Updated•14 years ago
|
Attachment #470225 -
Flags: review?(lw) → review+
![]() |
Assignee | |
Comment 7•14 years ago
|
||
Whiteboard: fixed-in-tracemonkey
Comment 8•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•