Ignore:
Timestamp:
Sep 19, 2011, 6:41:42 PM (14 years ago)
Author:
[email protected]
Message:

String#split is buggy
https://bugs.webkit.org/show_bug.cgi?id=68348

Reviewed by Sam Weinig.

Source/JavaScriptCore:

  • runtime/StringPrototype.cpp:

(JSC::jsStringWithReuse):

  • added helper function to reuse original JSString value.

(JSC::stringProtoFuncSplit):

  • Rewritten from the spec.
  • tests/mozilla/ecma/String/15.5.4.8-2.js:

(getTestCases):

  • This test is not ES5 compliant.

LayoutTests:

  • fast/js/script-tests/string-split-conformance.js: Added.
  • fast/js/string-split-conformance-expected.txt: Added.
  • fast/js/string-split-conformance.html: Added.
    • Added new Layout test based on:

http://stevenlevithan.com/demo/split.cfm

  • sputnik/Conformance/15_Native_Objects/15.5_String/15.5.4/15.5.4.14_String.prototype.split/S15.5.4.14_A1_T6-expected.txt:
  • sputnik/Conformance/15_Native_Objects/15.5_String/15.5.4/15.5.4.14_String.prototype.split/S15.5.4.14_A1_T7-expected.txt:
  • sputnik/Conformance/15_Native_Objects/15.5_String/15.5.4/15.5.4.14_String.prototype.split/S15.5.4.14_A1_T8-expected.txt:
  • sputnik/Conformance/15_Native_Objects/15.5_String/15.5.4/15.5.4.14_String.prototype.split/S15.5.4.14_A1_T9-expected.txt:
  • sputnik/Conformance/15_Native_Objects/15.5_String/15.5.4/15.5.4.14_String.prototype.split/S15.5.4.14_A2_T7-expected.txt:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r95503 r95504  
     12011-09-19  Gavin Barraclough  <[email protected]>
     2
     3        String#split is buggy
     4        https://bugs.webkit.org/show_bug.cgi?id=68348
     5
     6        Reviewed by Sam Weinig.
     7
     8        * runtime/StringPrototype.cpp:
     9        (JSC::jsStringWithReuse):
     10            - added helper function to reuse original JSString value.
     11        (JSC::stringProtoFuncSplit):
     12            - Rewritten from the spec.
     13        * tests/mozilla/ecma/String/15.5.4.8-2.js:
     14        (getTestCases):
     15            - This test is not ES5 compliant.
     16
    1172011-09-19  Geoffrey Garen  <[email protected]>
    218
Note: See TracChangeset for help on using the changeset viewer.