[Webkit-unassigned] [Bug 200130] New: Response constructor doesn't throw on disturbed ReadableStream

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 25 10:17:43 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=200130

            Bug ID: 200130
           Summary: Response constructor doesn't throw on disturbed
                    ReadableStream
           Product: WebKit
           Version: Safari 12
          Hardware: Macintosh
                OS: macOS 10.14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dev at rumk.in

It looks like a regression of the bug #156911

Example code which doesn't throw:

    try {
      const stream = new ReadableStream()
      stream.cancel();

      new Response(stream)

      console.log("Doesn't throw")
    }
    catch (_) {
      console.log("Throws")
    }

Expected behavior: Output "Throws"
Current behavior: Output "Doesn't throw"

Check online: https://jsbin.com/yitaloburu/edit?js,console

Safari version is 12.1.1

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190725/bd87a876/attachment.html>


More information about the webkit-unassigned mailing list