Exemplo
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
Caso
- Objetivo
- Verify that Luxon's custom invalid error classes are not exported and their thrown instances use the generic 'Error' name. HOW
- Pacotes
- luxon 3.5.0
- Ambiente
- node
- Criado
- 2026-08-17T01:57:19Z
O que costuma-se supor
When throwOnInvalid is enabled, Luxon throws public custom error classes whose name property matches their constructor name.
O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.
Contrato
- Luxon's custom error classes (InvalidDateTimeError, InvalidDurationError, and InvalidIntervalError) are not exported, and their thrown instances have their name property set to 'Error' rather than their constructor names.
Arquivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9