LibJS: Enable EXPLICIT_SYMBOL_EXPORT and annotate minimum symbol set

This commit is contained in:
ayeteadoe
2025-07-19 13:49:30 -07:00
committed by Tim Flynn
parent 539a675802
commit 2e2484257d
Notes: github-actions[bot] 2025-07-22 15:52:50 +00:00
61 changed files with 167 additions and 124 deletions

View File

@@ -8,13 +8,14 @@
#pragma once
#include <AK/String.h>
#include <LibJS/Export.h>
#include <LibJS/Runtime/Completion.h>
#include <LibJS/Runtime/Object.h>
#include <LibJS/SourceRange.h>
namespace JS {
struct TracebackFrame {
struct JS_API TracebackFrame {
FlyString function_name;
[[nodiscard]] SourceRange const& source_range() const;
@@ -26,7 +27,7 @@ enum CompactTraceback {
Yes,
};
class Error : public Object {
class JS_API Error : public Object {
JS_OBJECT(Error, Object);
GC_DECLARE_ALLOCATOR(Error);
@@ -62,7 +63,7 @@ inline bool Object::fast_is<Error>() const { return is_error_object(); }
// our way of implementing the [[ErrorData]] internal slot, which is
// used in Object.prototype.toString().
#define DECLARE_NATIVE_ERROR(ClassName, snake_name, PrototypeName, ConstructorName) \
class ClassName final : public Error { \
class JS_API ClassName final : public Error { \
JS_OBJECT(ClassName, Error); \
GC_DECLARE_ALLOCATOR(ClassName); \
\