[webkit-changes] [WebKit/WebKit] f44648: Type getter is not needed for internal ReadableStr...

youennf noreply at github.com
Mon Nov 28 00:45:09 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f44648f07471b6c34f61993baa8997f7519a18a1
      https://github.com/WebKit/WebKit/commit/f44648f07471b6c34f61993baa8997f7519a18a1
  Author: Youenn Fablet <youennf at gmail.com>
  Date:   2022-11-28 (Mon, 28 Nov 2022)

  Changed paths:
    A LayoutTests/http/wpt/fetch/fetch-stream-source-expected.txt
    A LayoutTests/http/wpt/fetch/fetch-stream-source.html
    M Source/WebCore/Modules/streams/ReadableStream.js
    M Source/WebCore/Modules/streams/ReadableStreamSource.idl
    M Source/WebCore/bindings/js/JSDOMOperationReturningPromise.h

  Log Message:
  -----------
  Type getter is not needed for internal ReadableStream sources
https://bugs.webkit.org/show_bug.cgi?id=248268
rdar://102338913

Reviewed by Eric Carlson.

Make ReadableStreamSource method privates.
In ReadableStream, use @getters instead of private getters to allow getting private values from prototype.
Covered by added test.

* LayoutTests/http/wpt/fetch/fetch-stream-source-expected.txt: Added.
* LayoutTests/http/wpt/fetch/fetch-stream-source.html: Added.
* Source/WebCore/Modules/streams/ReadableStream.js:
(initializeReadableStream):
* Source/WebCore/Modules/streams/ReadableStreamSource.idl:
* Source/WebCore/bindings/js/JSDOMOperationReturningPromise.h:
(WebCore::IDLOperationReturningPromise::call):

Canonical link: https://commits.webkit.org/257063@main




More information about the webkit-changes mailing list