mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 20:59:10 +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
|
@ -403,6 +403,28 @@
|
|||
|
||||
mixinBody(Request, _body, _mimeType);
|
||||
|
||||
Object.defineProperty(Request.prototype, "method", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
});
|
||||
Object.defineProperty(Request.prototype, "url", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
});
|
||||
Object.defineProperty(Request.prototype, "headers", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
});
|
||||
Object.defineProperty(Request.prototype, "redirect", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
});
|
||||
Object.defineProperty(Request.prototype, "clone", {
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
configurable: true,
|
||||
});
|
||||
|
||||
webidl.converters["Request"] = webidl.createInterfaceConverter(
|
||||
"Request",
|
||||
Request,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue