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
parent 2149abda39
commit 6d7ab34318

View File

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