LibJS: Enable EXPLICIT_SYMBOL_EXPORT

This commit is contained in:
ayeteadoe 2025-06-28 21:39:13 -07:00 committed by Andrew Kaster
parent 83846b3861
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

@ -14,7 +14,7 @@
namespace JS {
struct TracebackFrame {
struct JS_API TracebackFrame {
FlyString function_name;
[[nodiscard]] SourceRange const& source_range() const;
@ -26,7 +26,7 @@ enum CompactTraceback {
Yes,
};
class Error : public Object {
class JS_API Error : public Object {
JS_OBJECT(Error, Object);
GC_DECLARE_ALLOCATOR(Error);
@ -60,7 +60,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); \
\