Constant mozjs_sys::jsapi::JSPROP_RESOLVING

source ยท
pub const JSPROP_RESOLVING: c_uint = 8;
Expand description

Resolve hooks and enumerate hooks must pass this flag when calling JS_Define* APIs to reify lazily-defined properties.

JSPROP_RESOLVING is used only with property-defining APIs. It tells the engine to skip the resolve hook when performing the lookup at the beginning of property definition. This keeps the resolve hook from accidentally triggering itself: unchecked recursion.

For enumerate hooks, triggering the resolve hook would be merely silly, not fatal, except in some cases involving non-configurable properties.