[gjs: 6/10] importer: Remove special case for __iterator__



commit ac94032fd2d93a8dfa41607d893ac0744706945a
Author: Philip Chimento <philip chimento gmail com>
Date:   Wed Sep 5 21:00:39 2018 -0400

    importer: Remove special case for __iterator__
    
    This was part of the old Mozilla-specific iteration protocol, and is not
    needed anymore.

 gjs/importer.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gjs/importer.cpp b/gjs/importer.cpp
index d59a4480..3d3c2c48 100644
--- a/gjs/importer.cpp
+++ b/gjs/importer.cpp
@@ -758,8 +758,7 @@ importer_resolve(JSContext        *context,
     /* let Object.prototype resolve these */
     JSFlatString *str = JSID_TO_FLAT_STRING(id);
     if (JS_FlatStringEqualsAscii(str, "valueOf") ||
-        JS_FlatStringEqualsAscii(str, "toString") ||
-        JS_FlatStringEqualsAscii(str, "__iterator__")) {
+        JS_FlatStringEqualsAscii(str, "toString")) {
         *resolved = false;
         return true;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]