Skip to content
  • commit-queue@webkit.org's avatar
    Source/WebCore: Blob constructor accepts a sequence (array-like object) as first arg. · 847e8c7e
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=124175
    
    Patch by Victor Costan <costan@gmail.com> on 2013-11-13
    Reviewed by Christophe Dumez.
    
    Added test cases to fast/files/script-tests/blob-constructor.js.
    
    * bindings/js/JSBlobCustom.cpp: Make the constructor work with sequences.
    (WebCore::JSBlobConstructor::constructJSBlob):
    * bindings/js/JSDOMBinding.h:
    (WebCore::toJSSequence): Slightly better error message when conversion fails.
    (WebCore::toJS): Whitespace.
    (WebCore::jsArray): Whitespace.
    
    LayoutTests: Blob constructor accepts a sequence (array-like object) as first arg.
    https://bugs.webkit.org/show_bug.cgi?id=124175
    
    Patch by Victor Costan <costan@gmail.com> on 2013-11-13
    Reviewed by Christophe Dumez.
    
    * crypto/subtle/argument-conversion-expected.txt: Updated sequence error expectations.
    * fast/dom/Window/window-postmessage-args-expected.txt: Updated sequence error expectations.
    * fast/events/constructors/message-event-constructor-expected.txt: Updated sequence error expectations.
    * fast/events/message-port-multi-expected.txt: Updated sequence error expectations.
    * fast/files/blob-constructor-expected.txt: Updated error text and added expectations.
    * fast/files/script-tests/blob-constructor.js: Added sequence test cases.
    * fast/workers/worker-context-multi-port-expected.txt: Updated sequence error expectations.
    * fast/workers/worker-multi-port-expected.txt: Updated sequence error expectations.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159275 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    847e8c7e