Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// tarball ships it at its top level, so after `bun bd` it can be found in the
// build cache for the WEBKIT_VERSION pinned in scripts/build/deps/webkit.ts;
// that is what is used when no path is given. A local WebKit build writes it
// to <build>/JavaScriptCore/DerivedSources/CombinedDomains.json.
// to <build>/JavaScriptCore/Scripts/CombinedDomains.json.
//
// Pass --v8 to also refresh src/protocol/v8 from the Chrome DevTools protocol
// repository (requires network access).
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/deps/webkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* for local mode. Override via `--webkit-version=<hash>` to test a branch.
* From https://github.com/oven-sh/WebKit releases.
*/
export const WEBKIT_VERSION = "930bcf4ea6d1e67dc8c866ff46f075fd9fff5a01";
export const WEBKIT_VERSION = "autobuild-preview-pr-814-176b9e65";
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
Comment thread
sosukesuzuki marked this conversation as resolved.
Resolved
Comment thread
claude[bot] marked this conversation as resolved.
Resolved

/**
* WebKit (JavaScriptCore) — the JS engine.
Expand Down
2 changes: 1 addition & 1 deletion src/jsc/bindings/BunProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ JSC_DEFINE_HOST_FUNCTION(Process_functionUmask, (JSGlobalObject * globalObject,
auto str = value.getString(globalObject);
RETURN_IF_EXCEPTION(throwScope, {});
auto policy = WTF::TrailingJunkPolicy::Disallow;
auto opt = str.is8Bit() ? WTF::parseInteger<mode_t, uint8_t>(str.span8(), 8, policy) : WTF::parseInteger<mode_t, char16_t>(str.span16(), 8, policy);
auto opt = str.is8Bit() ? WTF::parseInteger<mode_t, Latin1Character>(str.span8(), 8, policy) : WTF::parseInteger<mode_t, char16_t>(str.span16(), 8, policy);
if (!opt.has_value()) return Bun::ERR::INVALID_ARG_VALUE(throwScope, globalObject, "mask"_s, value, "must be a 32-bit unsigned integer or an octal string"_s);
newUmask = opt.value();
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/jsc/bindings/BunString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static void assertStaticStringIsNotCommon(EncodedSlice slice)
{
if (Zig::isTaggedUTF16Ptr(slice.ptr))
return;
std::span<const Latin1Character> literal { Zig::untag(slice.ptr), slice.len };
std::span<const Latin1Character> literal { byteCast<Latin1Character>(Zig::untag(slice.ptr)), slice.len };
ASSERT_WITH_MESSAGE(!CommonStrings::isCommonStringLiteral(literal),
"\"%.*s\" is in BunCommonStrings.h: use global.common_strings() instead of String::static_(..).to_js()",
static_cast<int>(literal.size()), reinterpret_cast<const char*>(literal.data()));
Expand Down
4 changes: 2 additions & 2 deletions src/jsc/bindings/JSBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ JSC::EncodedJSValue constructFromEncoding(JSGlobalObject* lexicalGlobalObject, W
}
case WebCore::BufferEncodingType::ascii: // ascii is a noop for latin1
case WebCore::BufferEncodingType::latin1: { // The native encoding is latin1, so we don't need to do any conversion.
result = JSValue::encode(createBuffer(lexicalGlobalObject, span.data(), span.size()));
result = JSValue::encode(createBuffer(lexicalGlobalObject, byteCast<uint8_t>(span.data()), span.size()));
break;
}
default: {
Expand Down Expand Up @@ -2092,7 +2092,7 @@ JSC::EncodedJSValue jsBufferToStringFromBytes(JSGlobalObject* lexicalGlobalObjec
if (str.isNull()) [[unlikely]] {
return Bun::ERR::MEMORY_ALLOCATION_FAILED(scope, lexicalGlobalObject);
}
Bun__encoding__writeLatin1(bytes.data(), bytes.size(), data.data(), data.size(), static_cast<uint8_t>(encoding));
Bun__encoding__writeLatin1(byteCast<Latin1Character>(bytes.data()), bytes.size(), byteCast<uint8_t>(data.data()), data.size(), static_cast<uint8_t>(encoding));
return JSValue::encode(jsString(vm, WTF::move(str)));
}

Expand Down
2 changes: 1 addition & 1 deletion src/jsc/bindings/JSCommonJSModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class GraphCommonJSSourceProvider final : public JSC::SourceProvider {

private:
GraphCommonJSSourceProvider(Ref<JSC::SourceProvider>&& source, unsigned overlayShape)
: JSC::SourceProvider(source->sourceOrigin(), String(source->sourceURL()), String(source->preRedirectURL()), source->sourceTaintedOrigin(), source->startPosition(), source->sourceType())
: JSC::SourceProvider(source->sourceOrigin(), String(source->sourceURL()), String(source->preRedirectURL()), source->taintedness(), source->startPosition(), source->sourceType())
, m_source(WTF::move(source))
, m_overlayShape(overlayShape)
{
Expand Down
2 changes: 1 addition & 1 deletion src/jsc/bindings/LintReport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Writer {
{
if (text.is8Bit() && charactersAreAllASCII(text.span8())) [[likely]] {
word(text.length());
bytes(text.span8());
bytes(byteCast<uint8_t>(text.span8()));
return;
}
// No character takes more than three bytes for each UTF-16 code unit.
Expand Down
8 changes: 7 additions & 1 deletion src/jsc/bindings/NodeVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ static JSValue scriptFetchParametersToImportAttributes(JSGlobalObject* globalObj
// Unreachable with BUN_JSC_ADDITIONS (`type: "text"` parses as HostDefined); kept so the switch stays exhaustive.
obj->putDirect(vm, vm.propertyNames->type, jsNontrivialString(vm, "text"_s));
break;
case JSC::ScriptFetchParameters::Type::CSS:
// Unreachable for the same reason.
obj->putDirect(vm, vm.propertyNames->type, jsNontrivialString(vm, "css"_s));
break;
case JSC::ScriptFetchParameters::Type::HostDefined:
obj->putDirect(vm, vm.propertyNames->type, jsString(vm, params->hostDefinedImportType()));
break;
Expand Down Expand Up @@ -541,6 +545,9 @@ static void writeArrowHeaderStack(VM& vm, ErrorInstance* errorInstance, const St
bool handleException(JSGlobalObject* globalObject, VM& vm, NakedPtr<JSC::Exception> exception, ThrowScope& throwScope)
{
if (auto* errorInstance = dynamicDowncast<ErrorInstance>(exception->value())) {
// No stack is captured for a throw that a `catch` clause further up is certain to handle. The error's own is
// taken then, and that one is gone once the `stack` property is materialized.
auto& e_stack = exception->stackForReporting(vm);
errorInstance->materializeErrorInfoIfNeeded(vm, vm.propertyNames->stack);
RETURN_IF_EXCEPTION(throwScope, {});
JSValue stack_jsval = errorInstance->get(globalObject, vm.propertyNames->stack);
Expand All @@ -551,7 +558,6 @@ bool handleException(JSGlobalObject* globalObject, VM& vm, NakedPtr<JSC::Excepti
String stack = stack_jsval.toWTFString(globalObject);
RETURN_IF_EXCEPTION(throwScope, {});

auto& e_stack = exception->stack();
size_t stack_size = e_stack.size();
if (stack_size == 0) {
return false;
Expand Down
4 changes: 2 additions & 2 deletions src/jsc/bindings/StringBuilderBinding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ extern "C" void StringBuilder__appendString(WTF::StringBuilder* builder, const B
str->appendToBuilder(*builder);
}

extern "C" void StringBuilder__appendLChar(WTF::StringBuilder* builder, Latin1Character c)
extern "C" void StringBuilder__appendLChar(WTF::StringBuilder* builder, uint8_t c)
{
builder->append(c);
builder->append(Latin1Character { c });
}

extern "C" void StringBuilder__appendUChar(WTF::StringBuilder* builder, UChar c)
Expand Down
9 changes: 5 additions & 4 deletions src/jsc/bindings/ZigException.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ static void populateStackFramePosition(const JSC::StackFrame& stackFrame, BunStr
lineEnd++;
}

const unsigned char* bytes = sourceString.span8().data();
const unsigned char* bytes = byteCast<uint8_t>(sourceString.span8().data());

// Most of the time, when you look at a stack trace, you want a couple lines above.

Expand Down Expand Up @@ -823,7 +823,7 @@ void exceptionFromString(ZigException& except, JSC::JSValue value, JSC::JSGlobal

extern "C" void JSC__Exception__getStackTrace(JSC::Exception* arg0, JSC::JSGlobalObject* global, ZigStackTrace* trace)
{
populateStackTrace(arg0->vm(), arg0->stack(), *trace, PopulateStackTraceFlags::OnlyPosition);
populateStackTrace(arg0->vm(), arg0->stackForReporting(arg0->vm()), *trace, PopulateStackTraceFlags::OnlyPosition);
}

extern "C" [[ZIG_EXPORT(check_slow)]] void JSC__JSValue__toZigException(JSC::EncodedJSValue jsException, JSC::JSGlobalObject* global, ZigException* exception)
Expand Down Expand Up @@ -872,8 +872,9 @@ extern "C" void ZigException__collectSourceLines(JSC::EncodedJSValue jsException
auto* jscException = uncheckedDowncast<JSC::Exception>(value);
JSValue unwrapped = jscException->value();

if (jscException->stack().size() > 0) {
populateStackTrace(global->vm(), jscException->stack(), exception->stack, PopulateStackTraceFlags::OnlySourceLines);
auto& stack = jscException->stackForReporting(global->vm());
if (stack.size() > 0) {
populateStackTrace(global->vm(), stack, exception->stack, PopulateStackTraceFlags::OnlySourceLines);
}

exceptionFromString(*exception, unwrapped, global);
Expand Down
2 changes: 1 addition & 1 deletion src/jsc/bindings/ZigGlobalObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ JSC_DEFINE_HOST_FUNCTION(functionBTOA,
RELEASE_AND_RETURN(
throwScope,
Bun__encoding__toString(
encodedString.span8().data(),
byteCast<uint8_t>(encodedString.span8().data()),
length,
globalObject,
static_cast<uint8_t>(WebCore::BufferEncodingType::base64)));
Expand Down
15 changes: 9 additions & 6 deletions src/jsc/bindings/bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "JavaScriptCore/AggregateError.h"
#include "JavaScriptCore/ArrayBufferView.h"
#include "JavaScriptCore/ArrayStorage.h"
#include "JavaScriptCore/SourceProviderCache.h"
#include "JavaScriptCore/SparseArrayValueMap.h"
#include "JavaScriptCore/BytecodeIndex.h"
#include "JavaScriptCore/CodeBlock.h"
Expand Down Expand Up @@ -2829,7 +2830,7 @@ static JSC::EncodedJSValue systemErrorToErrorInstance(const SystemError* arg0, J
// bun_sys::Error tags are static literals; "write" and "close" are common strings.
JSC::JSValue syscall;
auto staticSyscall = err.syscall.tag == BunStringTag::StaticEncodedSlice && !Zig::isTaggedUTF16Ptr(err.syscall.impl.encoded.ptr)
? std::span<const Latin1Character> { Zig::untag(err.syscall.impl.encoded.ptr), err.syscall.impl.encoded.len }
? std::span<const Latin1Character> { byteCast<Latin1Character>(Zig::untag(err.syscall.impl.encoded.ptr)), err.syscall.impl.encoded.len }
: std::span<const Latin1Character> {};
if (equalSpans(staticSyscall, "write"_span8))
syscall = Bun::commonStrings(vm).writeString();
Expand Down Expand Up @@ -3763,7 +3764,7 @@ JSC::EncodedJSValue JSC__JSGlobalObject__createAggregateErrorWithArray(JSC::JSGl
auto ref = String(ExternalStringImpl::create({ reinterpret_cast<const char16_t*>(Zig::untag(str.ptr)), str.len }, Zig::untagVoid(str.ptr), free_global_string));
return JSC::JSValue::encode(JSC::jsString(arg1->vm(), WTF::move(ref)));
} else {
auto ref = String(ExternalStringImpl::create({ Zig::untag(str.ptr), str.len }, Zig::untagVoid(str.ptr), free_global_string));
auto ref = String(ExternalStringImpl::create({ byteCast<Latin1Character>(Zig::untag(str.ptr)), str.len }, Zig::untagVoid(str.ptr), free_global_string));
return JSC::JSValue::encode(JSC::jsString(arg1->vm(), WTF::move(ref)));
}
}
Expand Down Expand Up @@ -4518,7 +4519,7 @@ JSC::EncodedJSValue JSC__JSValue__createObject2(JSC::JSGlobalObject* globalObjec
}

// Since Identifier might not ref the string, we need to ensure it doesn't get deref'd until this function returns
const auto propertyString = String(StringImpl::createWithoutCopying({ arg1, arg2 }));
const auto propertyString = String(StringImpl::createWithoutCopying({ byteCast<Latin1Character>(arg1), arg2 }));
const auto identifier = JSC::Identifier::fromString(vm, propertyString);
const auto property = JSC::PropertyName(identifier);

Expand All @@ -4544,7 +4545,7 @@ JSC::EncodedJSValue JSC__JSValue__getPropertyValue(JSC::EncodedJSValue encodedVa
}

// Since Identifier might not ref the string, we need to ensure it doesn't get deref'd until this function returns
const auto propertyString = String(StringImpl::createWithoutCopying({ propertyName, propertyNameLength }));
const auto propertyString = String(StringImpl::createWithoutCopying({ byteCast<Latin1Character>(propertyName), propertyNameLength }));
const auto identifier = JSC::Identifier::fromString(vm, propertyString);
const auto property = JSC::PropertyName(identifier);

Expand Down Expand Up @@ -4884,7 +4885,7 @@ BunString JSC__JSValue__getClassName(JSC::EncodedJSValue JSValue0, JSC::JSGlobal
bool JSC__JSValue__getClassInfoName(JSValue value, const uint8_t** outPtr, size_t* outLen)
{
if (auto info = value.classInfoOrNull()) {
*outPtr = info->className.span8().data();
*outPtr = byteCast<uint8_t>(info->className.span8().data());
*outLen = info->className.span8().size();
return true;
}
Expand Down Expand Up @@ -4997,8 +4998,10 @@ size_t JSC__VM__runGC(JSC::VM* vm, bool sync)

vm->finalizeSynchronousJSExecution();

// A full collection only drops the caches that nothing has used since the one before it.
vm->sourceProviderCacheMap.clear();
Comment thread
sosukesuzuki marked this conversation as resolved.
Resolved

if (sync) {
vm->clearSourceProviderCaches();
vm->heap.deleteAllUnlinkedCodeBlocks(JSC::PreventCollectionAndDeleteAllCode);
vm->heap.collectNow(JSC::Sync, JSC::CollectionScope::Full);
#if IS_MALLOC_DEBUGGING_ENABLED && OS(DARWIN)
Expand Down
6 changes: 3 additions & 3 deletions src/jsc/bindings/decodeURIComponentSIMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ALWAYS_INLINE static void appendLiteralRun(StringBuilder& result, std::span<cons
result.append(chars);
return;
}
result.append(Zig::convertUTF8ToString(chars));
result.append(Zig::convertUTF8ToString(bytes));
}

WTF::String decodeURIComponentSIMD(std::span<const uint8_t> input)
Expand Down Expand Up @@ -64,7 +64,7 @@ WTF::String decodeURIComponentSIMD(std::span<const uint8_t> input)

if (inputIsASCII)
return String(lchar);
return Zig::convertUTF8ToString(lchar);
return Zig::convertUTF8ToString(input);

slow_path:
while (cursor < end && *cursor != '%') {
Expand Down Expand Up @@ -96,7 +96,7 @@ WTF::String decodeURIComponentSIMD(std::span<const uint8_t> input)
// Start of UTF-8 sequence
if ((byte & 0x80) == 0) {
// ASCII
result.append(byte);
result.append(static_cast<Latin1Character>(byte));
cursor += 3;
} else if ((byte & 0xE0) == 0xC0) {
// 2-byte sequence
Expand Down
6 changes: 3 additions & 3 deletions src/jsc/bindings/headers-handwritten.h
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,13 @@ extern "C" const char* Bun__version_sha;

extern "C" void EncodedSlice__freeGlobal(const unsigned char* ptr, size_t len);

extern "C" size_t Bun__encoding__writeLatin1(const unsigned char* ptr, size_t len, unsigned char* to, size_t other_len, Encoding encoding);
extern "C" size_t Bun__encoding__writeLatin1(const Latin1Character* ptr, size_t len, unsigned char* to, size_t other_len, Encoding encoding);
extern "C" size_t Bun__encoding__writeUTF16(const char16_t* ptr, size_t len, unsigned char* to, size_t other_len, Encoding encoding);

extern "C" size_t Bun__encoding__byteLengthLatin1AsUTF8(const unsigned char* ptr, size_t len);
extern "C" size_t Bun__encoding__byteLengthLatin1AsUTF8(const Latin1Character* ptr, size_t len);
extern "C" size_t Bun__encoding__byteLengthUTF16AsUTF8(const char16_t* ptr, size_t len);

extern "C" JSC::EncodedJSValue Bun__encoding__constructFromLatin1(void*, const unsigned char* ptr, size_t len, Encoding encoding);
extern "C" JSC::EncodedJSValue Bun__encoding__constructFromLatin1(void*, const Latin1Character* ptr, size_t len, Encoding encoding);
extern "C" JSC::EncodedJSValue Bun__encoding__constructFromUTF16(void*, const char16_t* ptr, size_t len, Encoding encoding);

extern "C" void Bun__EventLoop__runCallback2(JSC::JSGlobalObject* global, JSC::EncodedJSValue callback, JSC::EncodedJSValue thisValue, JSC::EncodedJSValue arg1, JSC::EncodedJSValue arg2);
Expand Down
14 changes: 7 additions & 7 deletions src/jsc/bindings/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static const WTF::String toString(EncodedSlice str)
}

return !isTaggedUTF16Ptr(str.ptr)
? WTF::String(WTF::ExternalStringImpl::create({ untag(str.ptr), str.len }, untagVoid(str.ptr), free_global_string))
? WTF::String(WTF::ExternalStringImpl::create({ byteCast<Latin1Character>(untag(str.ptr)), str.len }, untagVoid(str.ptr), free_global_string))
: WTF::String(WTF::ExternalStringImpl::create({ reinterpret_cast<const char16_t*>(untag(str.ptr)), str.len }, untagVoid(str.ptr), free_global_string));
}

Expand All @@ -143,7 +143,7 @@ static const WTF::String toString(EncodedSlice str)
}

return !isTaggedUTF16Ptr(str.ptr)
? WTF::String(WTF::StringImpl::createWithoutCopying({ untag(str.ptr), str.len }))
? WTF::String(WTF::StringImpl::createWithoutCopying({ byteCast<Latin1Character>(untag(str.ptr)), str.len }))
: WTF::String(WTF::StringImpl::createWithoutCopying(
{ reinterpret_cast<const char16_t*>(untag(str.ptr)), str.len }));
}
Expand Down Expand Up @@ -171,7 +171,7 @@ static const WTF::String toStringCopy(EncodedSlice str, StringPointer ptr)
}

return !isTaggedUTF16Ptr(str.ptr)
? WTF::String(WTF::StringImpl::create(std::span { &untag(str.ptr)[ptr.off], ptr.len }))
? WTF::String(WTF::StringImpl::create(std::span { byteCast<Latin1Character>(&untag(str.ptr)[ptr.off]), ptr.len }))
: WTF::String(WTF::StringImpl::create(
std::span { &reinterpret_cast<const char16_t*>(untag(str.ptr))[ptr.off], ptr.len }));
}
Expand Down Expand Up @@ -234,7 +234,7 @@ static void appendToBuilder(EncodedSlice str, WTF::StringBuilder& builder)
return;
}

builder.append({ untag(str.ptr), str.len });
builder.append({ byteCast<Latin1Character>(untag(str.ptr)), str.len });
}

static JSC::JSString* toJSStringGC(EncodedSlice str, JSC::JSGlobalObject* global)
Expand All @@ -257,15 +257,15 @@ static EncodedSlice toEncodedSlice(const WTF::StringImpl* str)
{
return (!str || str->isEmpty())
? EncodedSliceEmpty
: EncodedSlice { str->is8Bit() ? str->span8().data() : taggedUTF16Ptr(str->span16().data()),
: EncodedSlice { str->is8Bit() ? byteCast<uint8_t>(str->span8().data()) : taggedUTF16Ptr(str->span16().data()),
str->length() };
}

static EncodedSlice toEncodedSlice(const WTF::StringView& str)
{
return str.isEmpty()
? EncodedSliceEmpty
: EncodedSlice { str.is8Bit() ? str.span8().data() : taggedUTF16Ptr(str.span16().data()),
: EncodedSlice { str.is8Bit() ? byteCast<uint8_t>(str.span8().data()) : taggedUTF16Ptr(str.span16().data()),
str.length() };
}

Expand Down Expand Up @@ -301,7 +301,7 @@ static const WTF::String toStringStatic(EncodedSlice str)
// and asserts a trailing NUL) over-reads. Intern via a length-bounded span
// instead — same atom-table caching, no NUL dependency.
auto* untagged = untag(str.ptr);
return WTF::String(AtomStringImpl::add(std::span { untagged, str.len }));
return WTF::String(AtomStringImpl::add(std::span { byteCast<Latin1Character>(untagged), str.len }));
}

static const JSC::Identifier toIdentifier(EncodedSlice str, JSC::JSGlobalObject* global)
Expand Down
2 changes: 1 addition & 1 deletion src/jsc/bindings/node/crypto/CryptoPrimes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ JSValue GeneratePrimeJob::result(JSGlobalObject* globalObject, JSC::ThrowScope&
return {};
}

JSValue result = JSBigInt::parseInt(globalObject, vm, primeHex.span(), 16, JSBigInt::ErrorParseMode::IgnoreExceptions, JSBigInt::ParseIntSign::Unsigned);
JSValue result = JSBigInt::parseInt(globalObject, vm, byteCast<Latin1Character>(primeHex.span()), 16, JSBigInt::ErrorParseMode::IgnoreExceptions, JSBigInt::ParseIntSign::Unsigned);
RETURN_IF_EXCEPTION(scope, {});
if (result.isEmpty()) {
ERR::CRYPTO_OPERATION_FAILED(scope, globalObject, "could not generate prime"_s);
Expand Down
2 changes: 1 addition & 1 deletion src/jsc/bindings/node/crypto/KeyObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ void KeyObject::getRsaKeyDetails(JSGlobalObject* globalObject, ThrowScope& scope
return;
}

JSValue publicExponent = JSBigInt::parseInt(globalObject, vm, publicExponentHex.span(), 16, JSBigInt::ErrorParseMode::IgnoreExceptions, JSBigInt::ParseIntSign::Unsigned);
JSValue publicExponent = JSBigInt::parseInt(globalObject, vm, byteCast<Latin1Character>(publicExponentHex.span()), 16, JSBigInt::ErrorParseMode::IgnoreExceptions, JSBigInt::ParseIntSign::Unsigned);
RETURN_IF_EXCEPTION(scope, );
if (!publicExponent) {
ERR::CRYPTO_OPERATION_FAILED(scope, globalObject, "Failed to create public exponent"_s);
Expand Down
Loading
Loading