Skip to content

_bodyinit don't default to string #642

@jimmywarting

Description

@jimmywarting

apparently this works with native fetch

new Response(2).text().then(console.log) // 2
new Response({}).text().then(console.log) // [Object object]

but dose not with the polyfill i think the throw should be replaced with something that just do String(body)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions