History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: ASC-2936
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: None None
Assignee: Lars Hansen
Reporter: Justin Patrin
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
ActionScript Compiler (ASC)

String.split() reuses matched characters

Created: 11/07/07 10:52 PM   Updated: 07/22/08 12:27 PM
Component/s: Classes
Security Level: Public (All JIRA Users )

Issue Links:
Duplicate
This issue duplicates:
ASC-1739 String.split() incorrect B Closed
 

Severity: Incorrectly Functioning
Reproducibility: Every Time
Discoverability: Medium
Found in Version: Flash 9.0
Affected OS(s): Mac - OS 10.4
Steps to Reproduce:
This may not be a compiler issue but it is an AS3 regression. This works as in Expected Results in AS2 but Actual Results in AS2.

Steps to reproduce:

  trace("abbbc".split("bb"));

Actual Results (results in AS3):

  a,,b
 
Expected Results (resuls in AS2):

  a,bc
 

For more info, including what I think the algorithmic bug may be, see my blog post at http://www.reversefold.com/wordpress/?p=8
Language Found: English
Bugbase Id: none
Resolved by: Lars Hansen
Participants: Brent Baker, Justin Patrin and Lars Hansen


 All   Comments      Sort Order:
Brent Baker - [11/08/07 01:43 PM ]
Spidermokey returns "a,bc"

Lars Hansen - [12/04/07 12:21 PM - edited ]
The test cases are equivalent; the fix for ASC-1739 fixes this one.