LibJS: Enable EXPLICIT_SYMBOL_EXPORT

This commit is contained in:
ayeteadoe 2025-06-28 21:39:13 -07:00 committed by Andrew Kaster
commit c14173f651
Notes: github-actions[bot] 2025-06-30 16:51:52 +00:00
258 changed files with 952 additions and 941 deletions

View file

@ -17,7 +17,7 @@
namespace JS {
class Uint8ArrayConstructorHelpers {
class JS_API Uint8ArrayConstructorHelpers {
public:
static void initialize(Realm&, Object& constructor);
@ -26,7 +26,7 @@ private:
JS_DECLARE_NATIVE_FUNCTION(from_hex);
};
class Uint8ArrayPrototypeHelpers {
class JS_API Uint8ArrayPrototypeHelpers {
public:
static void initialize(Realm&, Object& prototype);
@ -48,10 +48,10 @@ struct DecodeResult {
Optional<Completion> error; // [[Error]]
};
ThrowCompletionOr<GC::Ref<TypedArrayBase>> validate_uint8_array(VM&);
ThrowCompletionOr<ByteBuffer> get_uint8_array_bytes(VM&, TypedArrayBase const&);
void set_uint8_array_bytes(TypedArrayBase&, ReadonlyBytes);
DecodeResult from_base64(VM&, StringView string, Alphabet alphabet, AK::LastChunkHandling last_chunk_handling, Optional<size_t> max_length = {});
DecodeResult from_hex(VM&, StringView string, Optional<size_t> max_length = {});
JS_API ThrowCompletionOr<GC::Ref<TypedArrayBase>> validate_uint8_array(VM&);
JS_API ThrowCompletionOr<ByteBuffer> get_uint8_array_bytes(VM&, TypedArrayBase const&);
JS_API void set_uint8_array_bytes(TypedArrayBase&, ReadonlyBytes);
JS_API DecodeResult from_base64(VM&, StringView string, Alphabet alphabet, AK::LastChunkHandling last_chunk_handling, Optional<size_t> max_length = {});
JS_API DecodeResult from_hex(VM&, StringView string, Optional<size_t> max_length = {});
}