[Webkit-unassigned] [Bug 68348] New: String#split is buggy
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Sep 19 04:19:25 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=68348
Summary: String#split is buggy
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
URL: http://stevenlevithan.com/demo/split.cfm
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: mathias at qiwi.be
Spec: http://es5.github.com/x15.5.html#x15.5.4.14
Test case: http://stevenlevithan.com/demo/split.cfm
'.'.split(/()()/); // should return ["."] but instead returns ["", "", "."]
'.'.split(/(.??)(.??)/); // should return ["."] but instead returns ["", "", "."]
'tesst'.split(/(s)*/); // should return ["t", undefined, "e", "s", "t"] but returns [undefined, "t", undefined, "e", "s", undefined, "t"]
'tesst'.split(/(s)*?/); // should return ["t", undefined, "e", undefined, "s", undefined, "s", undefined, "t"] but returns [undefined, "t", undefined, "e", undefined, "s", undefined, "s", undefined, "t"]
'tesst'.split(/(s*)/); // should return ["t", "", "e", "ss", "t"] but returns ["", "t", "", "e", "ss", "", "t"]
'tesst'.split(/(s*?)/); // should return ["t", "", "e", "", "s", "", "s", "", "t"] but returns ["", "t", "", "e", "", "s", "", "s", "", "t"]
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list