mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 19:38:58 +00:00
Upgrade webkit (#9885)
* span * remove JSStringIsEqualToString * bump webkit tag * span literal * undo * fix windows build * Update JSStringDecoder.cpp * Update JSStringDecoder.cpp * Update JSStringDecoder.cpp --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -97,7 +97,7 @@ static EncodedJSValue assignHeadersFromUWebSockets(uWS::HttpRequest* request, JS
|
||||
auto scope = DECLARE_THROW_SCOPE(vm);
|
||||
auto& builtinNames = WebCore::builtinNames(vm);
|
||||
std::string_view fullURLStdStr = request->getFullUrl();
|
||||
String fullURL = String::fromUTF8ReplacingInvalidSequences(reinterpret_cast<const LChar*>(fullURLStdStr.data()), fullURLStdStr.length());
|
||||
String fullURL = String::fromUTF8ReplacingInvalidSequences({ reinterpret_cast<const LChar*>(fullURLStdStr.data()), fullURLStdStr.length() });
|
||||
|
||||
{
|
||||
PutPropertySlot slot(objectValue, false);
|
||||
@@ -187,7 +187,7 @@ static EncodedJSValue assignHeadersFromUWebSockets(uWS::HttpRequest* request, JS
|
||||
}
|
||||
|
||||
if (methodString.isNull()) {
|
||||
methodString = String::fromUTF8ReplacingInvalidSequences(reinterpret_cast<const LChar*>(methodView.data()), methodView.length());
|
||||
methodString = String::fromUTF8ReplacingInvalidSequences({ reinterpret_cast<const LChar*>(methodView.data()), methodView.length() });
|
||||
}
|
||||
objectValue->put(objectValue, globalObject, builtinNames.methodPublicName(), jsString(vm, methodString), slot);
|
||||
RETURN_IF_EXCEPTION(scope, {});
|
||||
@@ -208,7 +208,7 @@ static EncodedJSValue assignHeadersFromUWebSockets(uWS::HttpRequest* request, JS
|
||||
|
||||
for (auto it = request->begin(); it != request->end(); ++it) {
|
||||
auto pair = *it;
|
||||
StringView nameView = StringView(reinterpret_cast<const LChar*>(pair.first.data()), pair.first.length());
|
||||
StringView nameView = StringView(std::span { reinterpret_cast<const LChar*>(pair.first.data()), pair.first.length() });
|
||||
LChar* data = nullptr;
|
||||
auto value = String::createUninitialized(pair.second.length(), data);
|
||||
if (pair.second.length() > 0)
|
||||
@@ -222,7 +222,7 @@ static EncodedJSValue assignHeadersFromUWebSockets(uWS::HttpRequest* request, JS
|
||||
nameString = WTF::httpHeaderNameStringImpl(name);
|
||||
lowercasedNameString = nameString;
|
||||
} else {
|
||||
nameString = String(nameView.characters8(), nameView.length());
|
||||
nameString = String({ nameView.characters8(), nameView.length() });
|
||||
lowercasedNameString = nameString.convertToASCIILowercase();
|
||||
}
|
||||
|
||||
@@ -403,7 +403,8 @@ JSC_DEFINE_HOST_FUNCTION(jsHTTPSetHeader, (JSGlobalObject * globalObject, CallFr
|
||||
return JSValue::encode(jsUndefined());
|
||||
}
|
||||
|
||||
JSValue createNodeHTTPInternalBinding(Zig::GlobalObject* globalObject) {
|
||||
JSValue createNodeHTTPInternalBinding(Zig::GlobalObject* globalObject)
|
||||
{
|
||||
auto* obj = constructEmptyObject(globalObject);
|
||||
VM& vm = globalObject->vm();
|
||||
obj->putDirect(
|
||||
|
||||
Reference in New Issue
Block a user