Re: [whatwg/fetch] Add `Response.json` static method (PR #1392)

@annevk commented on this pull request.



> @@ -7480,6 +7485,48 @@ are:
  <li><p>Return <var>responseObject</var>.
 </ol>
 
+
+<p>The static
+<dfn method for=Response><code>json(<var>data</var>, <var>init</var>)</code></dfn> method steps

Reusing the steps makes sense to me, but note that we cannot invoke global constructors in the way the pseudo-code suggests. It would have to be some kind of shared abstraction.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1392#discussion_r800538776
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1392/review/874502863@github.com>

Received on Monday, 7 February 2022 10:58:41 UTC