Bug 1316079 - Mark JS::PropertyDescriptor as JS_PUBLIC_API to fix linking. r=luke
☠☠ backed out by 8c97b9c7000a ☠ ☠
authorGeorg Kilzer <leper@wildfiregames.com>
Tue, 08 Nov 2016 19:36:45 +0100
changeset 435768 b1c5df3c47a43ee29860f845238bcf0ebb355193
parent 435767 dc62051be9c5671300d1c5d45307ea40e79a2719
child 435769 0cf317263531dd81bc757ece521014e7e4a9d529
push id35126
push userbmo:mh+mozilla@glandium.org
push dateWed, 09 Nov 2016 06:43:04 +0000
reviewersluke
bugs1316079
milestone52.0a1
Bug 1316079 - Mark JS::PropertyDescriptor as JS_PUBLIC_API to fix linking. r=luke
js/src/jsapi.h
--- a/js/src/jsapi.h
+++ b/js/src/jsapi.h
@@ -2499,17 +2499,17 @@ JS_DeepFreezeObject(JSContext* cx, JS::H
 extern JS_PUBLIC_API(bool)
 JS_FreezeObject(JSContext* cx, JS::Handle<JSObject*> obj);
 
 
 /*** Property descriptors ************************************************************************/
 
 namespace JS {
 
-struct PropertyDescriptor {
+struct JS_PUBLIC_API(PropertyDescriptor) {
     JSObject* obj;
     unsigned attrs;
     JSGetterOp getter;
     JSSetterOp setter;
     JS::Value value;
 
     PropertyDescriptor()
       : obj(nullptr), attrs(0), getter(nullptr), setter(nullptr), value(JS::UndefinedValue())