mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
refactor: clean up webidl protype configuration (#10871)
This commit is contained in:
parent
3b220c64f6
commit
3a4a47799f
13 changed files with 49 additions and 134 deletions
|
@ -384,31 +384,7 @@
|
|||
|
||||
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, "signal", {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
});
|
||||
Object.defineProperty(Request.prototype, "clone", {
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
configurable: true,
|
||||
});
|
||||
webidl.configurePrototype(Request);
|
||||
|
||||
webidl.converters["Request"] = webidl.createInterfaceConverter(
|
||||
"Request",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue