codesamplex

サンプル

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

ケース

ゴール
Demonstrate that core-js polyfilled Object.groupBy returns a null-prototype object rather than a standard Object instance. HOW
パッケージ
core-js 3.40.0
環境
node
作成日
2026-08-16T18:09:03Z

よくある思い込み

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

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート