summaryrefslogtreecommitdiff
path: root/ext/fetch/20_headers.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-04-20 00:58:41 +0200
committerGitHub <noreply@github.com>2023-04-20 00:58:41 +0200
commit02da57e2759a7521d53e28f7fb3fc0a268406b82 (patch)
treee8f08e3a658c5a17e11022b972377881e1ff2bcb /ext/fetch/20_headers.js
parentc2e9c8cce5ce1a1c4e81f685a552dc4b6955f421 (diff)
refactor(ext/webidl): remove option bags from "makeException" (#18679)
Creating these options bags is more costly than passing arguments one-by-one. Especially since `prefix` and `context` are passed to all functions.
Diffstat (limited to 'ext/fetch/20_headers.js')
-rw-r--r--ext/fetch/20_headers.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/fetch/20_headers.js b/ext/fetch/20_headers.js
index a96d0da3b..29b4540f9 100644
--- a/ext/fetch/20_headers.js
+++ b/ext/fetch/20_headers.js
@@ -431,7 +431,8 @@ webidl.converters["HeadersInit"] = (V, opts) => {
throw webidl.makeException(
TypeError,
"The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)'",
- opts,
+ opts.prefix,
+ opts.context,
);
};
webidl.converters["Headers"] = webidl.createInterfaceConverter(