codesamplex

サンプル

Handle es-toolkit TimeoutError and AbortError name property defaulting to 'Error' rather than the error class name

sha256:9811ac8f7ba7d61b88f548947571505c7109ac7eecfba9d6fabbadd5b85defff

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Handle es-toolkit TimeoutError and AbortError name property defaulting to 'Error' rather than the error class name HOW
パッケージ
es-toolkit 1.50.0
環境
node
作成日
2026-08-16T16:34:12Z

よくある思い込み

Instantiating or catching TimeoutError and AbortError yields an error object whose name property matches the class name 'TimeoutError' or 'AbortError'.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート