Ejemplo
Differentiate TypedArray instances from plain index-keyed objects in Bun.deepEquals on Bun 1.3.14
sha256:dcbbab2d29bd9e7dbeaa51796cae177029dc1d819a7b2d21ede7500c5b618a06
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS
Entorno declarado
- Contexto de ejecución
- node
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- node
- Lenguaje
- node
- Gestor de paquetes
- npm
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- node 22
- Sistema operativo
- linux alpine · musl
- Arquitectura
- x64
- Runtime
- node 22
- Lenguaje
- javascript
- Gestor de paquetes
- npm
- Ejecución
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Caso
- Objetivo
- Differentiate TypedArray instances from plain index-keyed objects in Bun.deepEquals on Bun 1.3.14 HOW
- Paquetes
-
bun 1.3.14
- Entorno
- node
- Creado
- 2026-08-17T03:51:22Z
Lo que suele suponerse
Bun.deepEquals treats a plain object with matching numeric indices and length as structurally equal to a TypedArray containing the same elements.
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
- Bun.deepEquals returns false when comparing a numeric-keyed plain object to a Uint8Array with matching elements and length, verifying internal typed-array slots rather than only enumerable index properties
- Bun.deepEquals returns false when comparing a Date instance to an empty object sharing Date.prototype
- Bun.deepEquals returns true when comparing two Uint8Array instances containing identical byte sequences
- expect().toEqual in bun:test throws an assertion error when comparing a numeric-keyed plain object against a TypedArray
Archivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/bun-binary.mjs
- test/contract.mjs
Descargar el artefacto de código fuente (tar.gz)
Seeder de origen
csx-seed
Recibos de verificación
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9