[Readable Streams API] Implement ReadableByteStreamController close()
https://bugs.webkit.org/show_bug.cgi?id=164413
Patch by Romain Bellessort <romain.bellessort@crf.canon.fr> on 2016-11-16
Reviewed by Darin Adler.
Source/WebCore:
Implemented close() method of ReadableByteStreamController.
Updated test expectations for close() tests and added tests
to ensure errors are thrown in various cases defined by spec.
* Modules/streams/ReadableByteStreamController.js:
(close): Added.
* Modules/streams/ReadableByteStreamInternals.js:
(readableByteStreamControllerClose): Added.
* bindings/js/WebCoreBuiltinNames.h: Added bytesFilled.
LayoutTests:
Updated test expectations for close() tests and added tests
to ensure errors are thrown in various cases defined by spec.
* streams/readable-byte-stream-controller.js: Updated.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@208790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7 files changed