Skip to main content

error_construct

Function error_construct 

Source
fn error_construct(
    it: &mut Interp,
    t: Value,
    a: &[Value],
    name: &str,
) -> Result<Value, Value>
Expand description

ES: Error コンストラクタ共通処理。message を ToString(例外は伝播)した後、InstallErrorCause に従い options が Object なら HasProperty / Get で cause を評価する。