Bug 1019003: Kill default visibility warning; r=Waldo
authorBenjamin Bouvier <benj@benj.me>
Thu, 05 Jun 2014 17:24:04 +0200
changeset 186849 b4376eee6dea2778f261b43665a361776fc2e0f4
parent 186848 ba505f7104351ab33b7253e05318caca3687d38e
child 186850 150dc6f784700f3ee0f9c3c8860e29da2321e4cc
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersWaldo
bugs1019003
milestone32.0a1
Bug 1019003: Kill default visibility warning; r=Waldo
js/src/vm/TypedArrayObject.cpp
--- a/js/src/vm/TypedArrayObject.cpp
+++ b/js/src/vm/TypedArrayObject.cpp
@@ -2108,17 +2108,17 @@ const JSPropertySpec _typedArray##Object
       obj = CheckedUnwrap(obj);                                                                 \
       if (!obj)                                                                                 \
           return nullptr;                                                                       \
       const Class *clasp = obj->getClass();                                                     \
       if (clasp == &TypedArrayObject::classes[TypedArrayObjectTemplate<NativeType>::ArrayTypeID()]) \
           return obj;                                                                           \
       return nullptr;                                                                           \
   } \
-  JS_FRIEND_DATA(const js::Class* const) js::detail::Name ## ArrayClassPtr =                    \
+  const js::Class* const js::detail::Name ## ArrayClassPtr =                                    \
       &js::TypedArrayObject::classes[TypedArrayObjectTemplate<NativeType>::ArrayTypeID()];
 
 IMPL_TYPED_ARRAY_JSAPI_CONSTRUCTORS(Int8, int8_t)
 IMPL_TYPED_ARRAY_JSAPI_CONSTRUCTORS(Uint8, uint8_t)
 IMPL_TYPED_ARRAY_JSAPI_CONSTRUCTORS(Uint8Clamped, uint8_clamped)
 IMPL_TYPED_ARRAY_JSAPI_CONSTRUCTORS(Int16, int16_t)
 IMPL_TYPED_ARRAY_JSAPI_CONSTRUCTORS(Uint16, uint16_t)
 IMPL_TYPED_ARRAY_JSAPI_CONSTRUCTORS(Int32, int32_t)