mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 05:42:43 +00:00
Upgrade WebKit Dec 24, 2025 (#25684)
- WTFMove → WTF::move / std::move: Replaced WTFMove() macro with WTF::move() function for WTF types, std::move() for std types - SortedArrayMap removed: Replaced with if-else chains in EventFactory.cpp, JSCryptoKeyUsage.cpp - Wasm::Memory::create signature changed: Removed VM parameter - URLPattern allocation: Changed from WTF_MAKE_ISO_ALLOCATED to WTF_MAKE_TZONE_ALLOCATED --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -115,14 +115,14 @@ static void assignHeadersFromUWebSocketsForCall(uWS::HttpRequest* request, JSVal
|
||||
{
|
||||
std::string_view fullURLStdStr = request->getFullUrl();
|
||||
String fullURL = String::fromUTF8ReplacingInvalidSequences({ reinterpret_cast<const Latin1Character*>(fullURLStdStr.data()), fullURLStdStr.length() });
|
||||
args.append(jsString(vm, WTFMove(fullURL)));
|
||||
args.append(jsString(vm, WTF::move(fullURL)));
|
||||
}
|
||||
|
||||
// Get the method.
|
||||
if (methodString.isUndefinedOrNull()) [[unlikely]] {
|
||||
std::string_view methodView = request->getMethod();
|
||||
WTF::String methodString = String::fromUTF8ReplacingInvalidSequences({ reinterpret_cast<const Latin1Character*>(methodView.data()), methodView.length() });
|
||||
args.append(jsString(vm, WTFMove(methodString)));
|
||||
args.append(jsString(vm, WTF::move(methodString)));
|
||||
} else {
|
||||
args.append(methodString);
|
||||
}
|
||||
@@ -216,7 +216,7 @@ static EncodedJSValue assignHeadersFromUWebSockets(uWS::HttpRequest* request, JS
|
||||
std::string_view fullURLStdStr = request->getFullUrl();
|
||||
String fullURL = String::fromUTF8ReplacingInvalidSequences({ reinterpret_cast<const Latin1Character*>(fullURLStdStr.data()), fullURLStdStr.length() });
|
||||
PutPropertySlot slot(objectValue, false);
|
||||
objectValue->put(objectValue, globalObject, builtinNames.urlPublicName(), jsString(vm, WTFMove(fullURL)), slot);
|
||||
objectValue->put(objectValue, globalObject, builtinNames.urlPublicName(), jsString(vm, WTF::move(fullURL)), slot);
|
||||
RETURN_IF_EXCEPTION(scope, {});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user