Changeset 64773 in webkit


Ignore:
Timestamp:
Aug 5, 2010 12:33:42 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-08-05 Michael Saboff <msaboff@apple.com>

Reviewed by Darin Adler.

Fixed https://bugs.webkit.org/show_bug.cgi?id=43401 where array
content aren't properly initialized as part of unshift.

  • runtime/JSArray.cpp: (JSC::JSArray::unshiftCount):

2010-08-05 Michael Saboff <msaboff@apple.com>

Reviewed by Darin Adler.

New regression tests added as part of unshift fix for bug described
inhttps://bugs.webkit.org/show_bug.cgi?id=43401.

  • fast/js/script-tests/unshift-multi.js: Added.
  • fast/js/unshift-multi-expected.txt: Added.
  • fast/js/unshift-multi.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r64763 r64773  
     12010-08-05  Michael Saboff  <msaboff@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Fixed https://bugs.webkit.org/show_bug.cgi?id=43401 where array
     6        content aren't properly initialized as part of unshift. 
     7
     8        * runtime/JSArray.cpp:
     9        (JSC::JSArray::unshiftCount):
     10
    1112010-08-05  Jian Li  <jianli@chromium.org>
    212
  • trunk/JavaScriptCore/runtime/JSArray.cpp

    r64620 r64773  
    851851        setArrayStorage(storage);
    852852        m_vectorLength += count;
    853     } else if ((!m_indexBias) && (!increaseVectorPrefixLength(m_vectorLength + count))) {
     853    } else if (!increaseVectorPrefixLength(m_vectorLength + count)) {
    854854        throwOutOfMemoryError(exec);
    855855        return;
    856856    }
     857
     858    for (int i = 0; i < count; i++)
     859        m_vector[i] = JSValue();
    857860}
    858861
  • trunk/LayoutTests/ChangeLog

    r64769 r64773  
     12010-08-05  Michael Saboff  <msaboff@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        New regression tests added as part of unshift fix for bug described
     6        inhttps://bugs.webkit.org/show_bug.cgi?id=43401.
     7
     8        * fast/js/script-tests/unshift-multi.js: Added.
     9        * fast/js/unshift-multi-expected.txt: Added.
     10        * fast/js/unshift-multi.html: Added.
     11
    1122010-08-05  Martin Robinson  <mrobinson@igalia.com>
    213
Note: See TracChangeset for help on using the changeset viewer.