Bug 143048 - [Streams API] Error storage should be moved from source to stream/reader
Summary: [Streams API] Error storage should be moved from source to stream/reader
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-25 07:07 PDT by youenn fablet
Modified: 2015-03-30 08:24 PDT (History)
3 users (show)

See Also:


Attachments
Patch (6.56 KB, patch)
2015-03-25 07:18 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Improving assert. Enabled case of creating ReadableStream with an empty source (7.59 KB, patch)
2015-03-27 07:44 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2015-03-25 07:07:13 PDT
Access to error goes through Reader now.
It is thus more appropriate to move the error storage to the stream and not the source.
Comment 1 youenn fablet 2015-03-25 07:18:07 PDT
Created attachment 249401 [details]
Patch
Comment 2 youenn fablet 2015-03-27 07:44:45 PDT
Created attachment 249567 [details]
Improving assert. Enabled case of creating ReadableStream with an empty source
Comment 3 Benjamin Poulain 2015-03-27 16:03:53 PDT
Comment on attachment 249567 [details]
Improving assert. Enabled case of creating ReadableStream with an empty source

View in context: https://bugs.webkit.org/attachment.cgi?id=249567&action=review

Ok

> Source/WebCore/bindings/js/ReadableStreamJSSource.cpp:73
> +        ASSERT(exec->argument(0).isObject());

Let's use ASSERT_WITH_MESSAGE to better explain why should the first argument must exist and be an object at this point.
Comment 4 WebKit Commit Bot 2015-03-30 08:24:11 PDT
Comment on attachment 249567 [details]
Improving assert. Enabled case of creating ReadableStream with an empty source

Clearing flags on attachment: 249567

Committed r182140: <http://trac.webkit.org/changeset/182140>
Comment 5 WebKit Commit Bot 2015-03-30 08:24:15 PDT
All reviewed patches have been landed.  Closing bug.