mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Avoid resolving substrings unnecessarily (#16090)
This commit is contained in:
@@ -522,7 +522,7 @@ JSC::EncodedJSValue INVALID_ARG_VALUE(JSC::ThrowScope& throwScope, JSC::JSGlobal
|
||||
return {};
|
||||
}
|
||||
|
||||
JSC::EncodedJSValue UNKNOWN_ENCODING(JSC::ThrowScope& throwScope, JSC::JSGlobalObject* globalObject, const WTF::String& encoding)
|
||||
JSC::EncodedJSValue UNKNOWN_ENCODING(JSC::ThrowScope& throwScope, JSC::JSGlobalObject* globalObject, const WTF::StringView encoding)
|
||||
{
|
||||
auto message = makeString("Unknown encoding: "_s, encoding);
|
||||
throwScope.throwException(globalObject, createError(globalObject, ErrorCode::ERR_UNKNOWN_ENCODING, message));
|
||||
|
||||
Reference in New Issue
Block a user