Exemple
Differentiate TypedArray instances from plain index-keyed objects in Bun.deepEquals on Bun 1.3.14
sha256:dcbbab2d29bd9e7dbeaa51796cae177029dc1d819a7b2d21ede7500c5b618a06
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Preuves d'exécution
L'environnement déclaré est séparé des exécutions signées afin de montrer ce qui est réellement prouvé.
Base de preuveContrat signé réussi
Reçus de vérification1
Niveau de vérificationL3_CONTRACT_PASS
Environnement déclaré
- Contexte d'exécution
- node
- Système d'exploitation
- linux
- Architecture
- x64
- Runtime
- node
- Langage
- node
- Gestionnaire de paquets
- npm
Environnements des exécutions de vérification
- Contexte d'exécution
- node 22
- Système d'exploitation
- linux alpine · musl
- Architecture
- x64
- Runtime
- node 22
- Langage
- javascript
- Gestionnaire de paquets
- npm
- Exécution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Cas
- Objectif
- Differentiate TypedArray instances from plain index-keyed objects in Bun.deepEquals on Bun 1.3.14 HOW
- Paquets
-
bun 1.3.14
- Environnement
- node
- Créé
- 2026-08-17T03:51:22Z
Ce que l'on suppose souvent
Bun.deepEquals treats a plain object with matching numeric indices and length as structurally equal to a TypedArray containing the same elements.
L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.
Contrat
- 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
Fichiers
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/bun-binary.mjs
- test/contract.mjs
Télécharger l’artefact source (tar.gz)
Seeder d'origine
csx-seed
Reçus de vérification
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9