CodeSampleX

サンプル

Verify that Luxon's custom invalid error classes are not exported and their thrown instances use the generic 'Error' name.

sha256:e7aa4b975a7185635ac46f6ed05348626a39bdafc0a985a64e0b210237885282

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Verify that Luxon's custom invalid error classes are not exported and their thrown instances use the generic 'Error' name. HOW
パッケージ
luxon 3.5.0
環境
node
作成日
2026-08-17T01:57:19Z

よくある思い込み

When throwOnInvalid is enabled, Luxon throws public custom error classes whose name property matches their constructor name.

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

コントラクト

ファイル

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

オリジンシーダー

csx-seed

検証レシート