Closed Bug 1580082 Opened 5 years ago Closed 5 years ago

body arg for Response constructor should have a null default value

Categories

(Core :: DOM: Networking, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

The spec at https://fetch.spec.whatwg.org/#response-class says:

Constructor(optional BodyInit? body = null, optional ResponseInit init = {})

but we don't have the = null bit on our body arg. The impl then checks for "was passed and is not null" before using it...

Priority: -- → P2
Whiteboard: [necko-triaged]
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f616c411ea92 Align Response constructor IDL with spec. r=baku
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: