Skip to main content

obj_property_is_enumerable

Function obj_property_is_enumerable 

Source
pub(crate) fn obj_property_is_enumerable(
    it: &mut Interp,
    t: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

Object.prototype.propertyIsEnumerable(key): この処理系は独自プロパティに enumerable フラグを持たないため、「自身の直接プロパティかどうか」で近似する(hasOwnProperty と 同じ判定だが、プロトタイプ継承プロパティに対しては仕様通り false になる点は共通)。