diff options
author | 2022-12-02 19:33:45 -0800 | |
---|---|---|
committer | 2022-12-02 19:33:45 -0800 | |
commit | 2f917f70302f180f029bad25bf0edb9f7c089987 (patch) | |
tree | 81b113c099538f173d98a23fcc19184c889f93a5 | |
parent | 207282862e55dff82f99c9fad558cb84898d292a (diff) | |
download | bun-2f917f70302f180f029bad25bf0edb9f7c089987.tar.gz bun-2f917f70302f180f029bad25bf0edb9f7c089987.tar.zst bun-2f917f70302f180f029bad25bf0edb9f7c089987.zip |
Make constructing headers from an existing headears faster
-rw-r--r-- | src/bun.js/bindings/webcore/JSFetchHeaders.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bun.js/bindings/webcore/JSFetchHeaders.cpp b/src/bun.js/bindings/webcore/JSFetchHeaders.cpp index c8986b588..1bf259bee 100644 --- a/src/bun.js/bindings/webcore/JSFetchHeaders.cpp +++ b/src/bun.js/bindings/webcore/JSFetchHeaders.cpp @@ -133,6 +133,7 @@ template<> EncodedJSValue JSC_HOST_CALL_ATTRIBUTES JSFetchHeadersDOMConstructor: RETURN_IF_EXCEPTION(throwScope, {}); setSubclassStructureIfNeeded<FetchHeaders>(lexicalGlobalObject, callFrame, asObject(jsValue)); RETURN_IF_EXCEPTION(throwScope, {}); + return JSValue::encode(jsValue); } init = std::optional<Converter<IDLUnion<IDLSequence<IDLSequence<IDLByteString>>, IDLRecord<IDLByteString, IDLByteString>>>::ReturnType>(convert<IDLUnion<IDLSequence<IDLSequence<IDLByteString>>, IDLRecord<IDLByteString, IDLByteString>>>(*lexicalGlobalObject, argument0.value())); } |