Re: [whatwg/fetch] Add the Priority Hints changes to the fetch spec (PR #1523)

@pmeenan commented on this pull request.



> @@ -7346,6 +7357,10 @@ constructor steps are:
  <li><p>If <var>init</var>["{{RequestInit/signal}}"] <a for=map>exists</a>, then set
  <var>signal</var> to it.
 
+ <li><p>If <var>init</var>["{{RequestInit/priority}}"] <a for=map>exists</a>, then use
+ it appropriately in setting <var>request</var>'s <a for=request>internal priority</a>
+ to an <a>implementation-defined</a> object.

Argh, yep.  Think I got it this time. The check for when `init['priority']` is set and using an existing request in the constructor now updates internal priority if it was already set, otherwise it sets the value of priority to be what was specified in init.

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

Message ID: <whatwg/fetch/pull/1523/review/1202651674@github.com>

Received on Friday, 2 December 2022 15:15:07 UTC