mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibJS: Enable EXPLICIT_SYMBOL_EXPORT and annotate minimum symbol set
This commit is contained in:
Notes:
github-actions[bot]
2025-07-22 15:52:50 +00:00
Author: https://github.com/ayeteadoe Commit: https://github.com/LadybirdBrowser/ladybird/commit/2e2484257d4 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5525 Reviewed-by: https://github.com/trflynn89 ✅
@@ -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); \
|
||||
\
|
||||
|
||||
Reference in New Issue
Block a user