From 093810467b3fff537df084f8f9b8696ebe20c285 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Tue, 16 May 2023 14:31:31 -0600 Subject: [PATCH] Normative: change Symbol.iterator fallback from callable check to undefined/null check (#272) --- spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.html b/spec.html index 5f8cbd2..e8480c7 100644 --- a/spec.html +++ b/spec.html @@ -135,8 +135,8 @@

1. If _obj_ is not an Object, throw a *TypeError* exception. - 1. Let _method_ be ? Get(_obj_, @@iterator). - 1. If IsCallable(_method_) is *false*, then + 1. Let _method_ be ? GetMethod(_obj_, @@iterator). + 1. If _method_ is *undefined*, then 1. Let _iterator_ be _obj_. 1. Else, 1. Let _iterator_ be ? Call(_method_, _obj_).