js::SharedArrayRawBufferRefs is a member of the JS_PUBLIC_API JSStructuredCloneData, but the class itself is not exported. So linking JSStructuredCloneData will fail with: undefined reference to `js::SharedArrayRawBufferRefs::~SharedArrayRawBufferRefs()' This is a regression of the issue reported in bug 1644600. Mark SharedArrayRawBufferRefs JS_PUBLIC_API. https://bugzilla.mozilla.org/show_bug.cgi?id=1644600 --- a/js/public/StructuredClone.h +++ b/js/public/StructuredClone.h @@ -437,7 +437,7 @@ namespace js { class SharedArrayRawBuffer; -class SharedArrayRawBufferRefs { +class JS_PUBLIC_API SharedArrayRawBufferRefs { public: SharedArrayRawBufferRefs() = default; SharedArrayRawBufferRefs(SharedArrayRawBufferRefs&& other) = default;