Constant mozjs::jsapi::JSPROP_RESOLVING

source ·
pub const JSPROP_RESOLVING: u32 = 8; // 8u32
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.