Skip to main content

object_seal

Function object_seal 

Source
pub(crate) fn object_seal(
    _it: &mut Interp,
    _t: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

Object.seal(obj)freeze より弱い: 新規プロパティの追加・既存プロパティの削除のみ 禁止し、既存値の変更は許可する)。freeze と同様、以前は丸ごと欠落していた。