mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +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:
@@ -37,7 +37,7 @@ namespace URLPatternUtilities {
|
||||
|
||||
URLPatternParser::URLPatternParser(EncodingCallbackType type, String&& segmentWildcardRegexp)
|
||||
: m_callbackType(type)
|
||||
, m_segmentWildcardRegexp(WTFMove(segmentWildcardRegexp))
|
||||
, m_segmentWildcardRegexp(WTF::move(segmentWildcardRegexp))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ ExceptionOr<void> URLPatternParser::performParse(const URLPatternStringOptions&
|
||||
|
||||
auto modifierToken = tryToConsumeModifierToken();
|
||||
|
||||
maybeFunctionException = addPart(WTFMove(prefix), nameToken, regexOrWildcardToken, {}, modifierToken);
|
||||
maybeFunctionException = addPart(WTF::move(prefix), nameToken, regexOrWildcardToken, {}, modifierToken);
|
||||
if (maybeFunctionException.hasException())
|
||||
return maybeFunctionException.releaseException();
|
||||
|
||||
@@ -78,7 +78,7 @@ ExceptionOr<void> URLPatternParser::performParse(const URLPatternStringOptions&
|
||||
fixedToken = tryToConsumeToken(TokenType::EscapedChar);
|
||||
|
||||
if (!fixedToken.isNull()) {
|
||||
m_pendingFixedValue.append(WTFMove(fixedToken.value));
|
||||
m_pendingFixedValue.append(WTF::move(fixedToken.value));
|
||||
|
||||
continue;
|
||||
}
|
||||
@@ -94,7 +94,7 @@ ExceptionOr<void> URLPatternParser::performParse(const URLPatternStringOptions&
|
||||
return maybeCloseError.releaseException();
|
||||
auto modifierToken = tryToConsumeModifierToken();
|
||||
|
||||
maybeFunctionException = addPart(WTFMove(prefix), nameToken, regexOrWildcardToken, WTFMove(suffix), modifierToken);
|
||||
maybeFunctionException = addPart(WTF::move(prefix), nameToken, regexOrWildcardToken, WTF::move(suffix), modifierToken);
|
||||
if (maybeFunctionException.hasException())
|
||||
return maybeFunctionException.releaseException();
|
||||
|
||||
@@ -213,7 +213,7 @@ ExceptionOr<void> URLPatternParser::addPart(String&& prefix, const Token& nameTo
|
||||
}
|
||||
|
||||
if (nameToken.isNull() && regexpOrWildcardToken.isNull() && modifier == Modifier::None) {
|
||||
m_pendingFixedValue.append(WTFMove(prefix));
|
||||
m_pendingFixedValue.append(WTF::move(prefix));
|
||||
|
||||
return {};
|
||||
}
|
||||
@@ -228,7 +228,7 @@ ExceptionOr<void> URLPatternParser::addPart(String&& prefix, const Token& nameTo
|
||||
if (prefix.isEmpty())
|
||||
return {};
|
||||
|
||||
auto encodedValue = callEncodingCallback(m_callbackType, WTFMove(prefix));
|
||||
auto encodedValue = callEncodingCallback(m_callbackType, WTF::move(prefix));
|
||||
if (encodedValue.hasException())
|
||||
return encodedValue.releaseException();
|
||||
|
||||
@@ -268,15 +268,15 @@ ExceptionOr<void> URLPatternParser::addPart(String&& prefix, const Token& nameTo
|
||||
if (isDuplicateName(name))
|
||||
return Exception { ExceptionCode::TypeError, "Duplicate name token produced when adding to parser part list."_s };
|
||||
|
||||
auto encodedPrefix = callEncodingCallback(m_callbackType, WTFMove(prefix));
|
||||
auto encodedPrefix = callEncodingCallback(m_callbackType, WTF::move(prefix));
|
||||
if (encodedPrefix.hasException())
|
||||
return encodedPrefix.releaseException();
|
||||
|
||||
auto encodedSuffix = callEncodingCallback(m_callbackType, WTFMove(suffix));
|
||||
auto encodedSuffix = callEncodingCallback(m_callbackType, WTF::move(suffix));
|
||||
if (encodedSuffix.hasException())
|
||||
return encodedSuffix.releaseException();
|
||||
|
||||
m_partList.append(Part { type, WTFMove(regexValue), modifier, WTFMove(name), encodedPrefix.releaseReturnValue(), encodedSuffix.releaseReturnValue() });
|
||||
m_partList.append(Part { type, WTF::move(regexValue), modifier, WTF::move(name), encodedPrefix.releaseReturnValue(), encodedSuffix.releaseReturnValue() });
|
||||
|
||||
return {};
|
||||
}
|
||||
@@ -424,7 +424,7 @@ std::pair<String, Vector<String>> generateRegexAndNameList(const Vector<Part>& p
|
||||
|
||||
result.append('$');
|
||||
|
||||
return { result.toString(), WTFMove(nameList) };
|
||||
return { result.toString(), WTF::move(nameList) };
|
||||
}
|
||||
|
||||
// https://urlpattern.spec.whatwg.org/#generate-a-pattern-string
|
||||
|
||||
Reference in New Issue
Block a user