Skip to content

Define wrapper Response(Response, init) semantics #41

Description

@medz

Parent: #36

Problem

IO/JS wrapper Response(Response, init) currently aliases the wrapped response host and ignores init. This is not a standard Response() constructor shape, so the package should explicitly decide whether this extension should be removed, rejected, or defined as clone/copy semantics.

Investigation scope

  • Identify why wrapper Response(Response, init) support exists and whether callers rely on it.
  • Compare with standard Response() body semantics, where arbitrary objects are stringified rather than treated as response copies.
  • Decide behavior for init overrides if the extension is retained.
  • Add tests so IO/JS wrapper behavior cannot silently alias mutable state.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions