mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 13:44:08 +00:00
fix(fetch): make prototype properties writable (#10769)
This commit is contained in:
parent
e5beb800c9
commit
d5d59bb794
5 changed files with 85 additions and 23 deletions
|
@ -1139,3 +1139,13 @@ unitTest(
|
|||
assertEquals(actual, expected);
|
||||
},
|
||||
);
|
||||
|
||||
unitTest({}, function fetchWritableRespProps(): void {
|
||||
const original = new Response("https://deno.land", {
|
||||
status: 404,
|
||||
headers: { "x-deno": "foo" },
|
||||
});
|
||||
const new_ = new Response("https://deno.land", original);
|
||||
assertEquals(original.status, new_.status);
|
||||
assertEquals(new_.headers.get("x-deno"), "foo");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue