Closed frewsxcv closed 9 years ago
I'm working on https://github.com/servo/servo/pull/7254 and am utilizing this function. I need access to the constants below for the flags parameter:
flags
http://mxr.mozilla.org/mozilla-central/source/js/src/jsfriendapi.h#945
#define JSITER_ENUMERATE 0x1 /* for-in compatible hidden default iterator */ #define JSITER_FOREACH 0x2 /* get obj[key] for each property */ #define JSITER_KEYVALUE 0x4 /* obsolete destructuring for-in wants [key, value] */ #define JSITER_OWNONLY 0x8 /* iterate over obj's own properties only */ #define JSITER_HIDDEN 0x10 /* also enumerate non-enumerable properties */ #define JSITER_SYMBOLS 0x20 /* also include symbol property keys */ #define JSITER_SYMBOLSONLY 0x40 /* exclude string property keys */
I'm not too familiar with the inner workings of this repo. How would one go about adding these?
Just define them in lib.rs like the other constants. We'll probably get support for constants in bindgen at a later point, but they're manually defined for now.
I'm working on https://github.com/servo/servo/pull/7254 and am utilizing this function. I need access to the constants below for the
flags
parameter:http://mxr.mozilla.org/mozilla-central/source/js/src/jsfriendapi.h#945
I'm not too familiar with the inner workings of this repo. How would one go about adding these?