Skip to main content

set_would_fail

Function set_would_fail 

Source
pub(crate) fn set_would_fail(it: &mut Interp, target: &Value, key: &str) -> bool
Expand description

OrdinarySet が false を返す場合(書き換え不可のデータ、setter の無い accessor、拡張不可で新規)を調べる。 Object.assign など Set(…, true) で呼ぶ組込みが TypeError にするための判定(プロトタイプ連鎖を辿る)。