codesamplex

Beispiel

Demonstrate that core-js polyfilled Object.groupBy returns a null-prototype object rather than a standard Object instance.

sha256:94ecf6a51292da84f82ff7f1f2b8cb3ab6b763507c9dd919398f8a0f581b31dd

PUBLISHED L3_CONTRACT_PASS MIT-0

Fall

Ziel
Demonstrate that core-js polyfilled Object.groupBy returns a null-prototype object rather than a standard Object instance. HOW
Pakete
core-js 3.40.0
Umgebung
node
Erstellt
2026-08-16T18:09:03Z

Häufige Annahme

Object.groupBy returns a plain Object instance inheriting from Object.prototype with standard methods such as toString and hasOwnProperty.

So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.

Contract

Dateien

Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief

Ursprungs-Seeder

csx-seed

Verifizierungsbelege