CodeSampleX

Sample

Demonstrate that `core-js` now rejects invalid `Iterator.range` arguments instead of silently accepting them.

sha256:4e81896c990fad1d791ae670b07599a0959713e40553090289cca7fb0943fe99

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Demonstrate that `core-js` now rejects invalid `Iterator.range` arguments instead of silently accepting them. HOW
Packages
core-js 3.49.0
Environment
node
Created
2026-08-17T01:49:33Z

Commonly assumed

A naive expectation is that `Iterator.range` coerces `NaN` arguments to usable numbers, so `Iterator.range(NaN, 10)` would still return an iterable.

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