From 7171dbcf217a847bd5a5e70557f185700e9eaf68 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Mon, 23 Nov 2026 19:11:14 -0800 Subject: [PATCH] Normative: reject primitive iterables in sumPrecise --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index 0ae2a92a82a..4a13b549259 100644 --- a/spec.html +++ b/spec.html @@ -33747,7 +33747,7 @@

Math.sumPrecise ( _items_ )

Given an iterable of Numbers, this function sums each value in the iterable and returns their sum. If any value is not a Number it throws a *TypeError* exception.

It performs the following steps when called:

- 1. Perform ? RequireObjectCoercible(_items_). + 1. If _items_ is not an Object, throw a *TypeError* exception. 1. Let _iteratorRecord_ be ? GetIterator(_items_, ~sync~). 1. Let _state_ be ~minus-zero~. 1. Let _sum_ be 0.