b=972983 use enum for BaseProxyHandler::Action values r=bholley

"inline" const static/class member initialization left missing symbols with gcc 4.7.3

--HG--
extra : rebase_source : 9e119ae9946e893b6113b838d49ab6384b472a99
This commit is contained in:
Karl Tomlinson 2014-02-18 09:59:03 +13:00
Родитель ea0eff7a99
Коммит fdaf36b04a
1 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -146,11 +146,13 @@ class JS_FRIEND_API(BaseProxyHandler)
* assertEnteredPolicy would pass GET | SET. * assertEnteredPolicy would pass GET | SET.
*/ */
typedef uint32_t Action; typedef uint32_t Action;
static const Action NONE = 0x00; enum {
static const Action GET = 0x01; NONE = 0x00,
static const Action SET = 0x02; GET = 0x01,
static const Action CALL = 0x04; SET = 0x02,
static const Action ENUMERATE = 0x08; CALL = 0x04,
ENUMERATE = 0x08
};
virtual bool enter(JSContext *cx, HandleObject wrapper, HandleId id, Action act, virtual bool enter(JSContext *cx, HandleObject wrapper, HandleId id, Action act,
bool *bp); bool *bp);