Ejemplo
Luxon 3.6.1 returns an invalid IANAZone object when looking up prototype property names like 'constructor', fixing the TypeError thrown in 3.6.0.
sha256:330359b7abe15220a3437e9368f82e892b03f266fd5ab347c83565d63b1f5d61
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Luxon 3.6.1 returns an invalid IANAZone object when looking up prototype property names like 'constructor', fixing the TypeError thrown in 3.6.0. HOW
- Paquetes
- luxon 3.6.1
- Entorno
- node
- Creado
- 2026-08-17T01:57:26Z
Lo que suele suponerse
Looking up an invalid IANA timezone string such as 'constructor' in Luxon returns an invalid IANAZone object rather than the native Object constructor function.
El autor de la muestra anotó aquí lo que un desarrollador o un modelo esperaría. El contrato de abajo es lo que realmente se ejecutó.
Contrato
- IANAZone.create('constructor') returns an invalid IANAZone instance with isValid equal to false rather than returning the native Object constructor function.
- DateTime.now().setZone('constructor') returns an invalid DateTime object with isValid equal to false without throwing a TypeError.
Archivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9