meant to include this in the previous commit

This commit is contained in:
Jarred Sumner
2022-09-20 00:45:19 -07:00
parent 6163fb830e
commit f0bc50eb71
2 changed files with 5 additions and 1 deletions

View File

@@ -330,6 +330,8 @@ public:
mutable WriteBarrier<Unknown> m_JSFetchHeadersSetterValue;
mutable WriteBarrier<Unknown> m_JSURLSearchParamsSetterValue;
JSObject* navigatorObject();
void trackFFIFunction(JSC::JSFunction* function)
{
this->m_ffiFunctions.append(JSC::Strong<JSC::JSFunction> { vm(), function });
@@ -382,6 +384,8 @@ private:
LazyClassStructure m_JSStringDecoderClassStructure;
LazyClassStructure m_JSReadableStateClassStructure;
LazyProperty<JSGlobalObject, JSObject> m_navigatorObject;
LazyProperty<JSGlobalObject, JSObject> m_JSArrayBufferControllerPrototype;
LazyProperty<JSGlobalObject, JSObject> m_JSHTTPSResponseControllerPrototype;
LazyProperty<JSGlobalObject, Structure> m_JSHTTPResponseController;

View File

@@ -809,7 +809,7 @@ else
const accept_encoding_header_hash = hashHeaderName("Accept-Encoding");
const user_agent_header = picohttp.Header{ .name = "User-Agent", .value = "bun.js " ++ Global.package_json_version };
const user_agent_header = picohttp.Header{ .name = "User-Agent", .value = Global.user_agent };
const user_agent_header_hash = hashHeaderName("User-Agent");
const location_header_hash = hashHeaderName("Location");