codesamplex

Sample

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

Case

Goal
Demonstrate that core-js polyfilled Object.groupBy returns a null-prototype object rather than a standard Object instance. HOW
Packages
core-js 3.40.0
Environment
node
Created
2026-08-16T18:09:03Z

Commonly assumed

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

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts