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

验证回执