Speculatively change iteration protocall to use the same next function
[WebKit-https.git] / LayoutTests / js / sequence-iterator-protocol-2.html
index ee243a9..357e2ed 100644 (file)
             log(`${b}`);
 
             iterProto.next = oldNext;
-            ctx.setLineDash([1,2,4]);
+            ctx.setLineDash([1,2,3]);
             a = ctx.getLineDash();
             log(a);
             if (a.toString() !== b.toString())
                 throw new Error("Bad result. They should be equal.");
 
             log(`callCount: ${callCount}`);
-            if (callCount !== 2)
-                throw new Error("Bad result. callCount should be 2.");
+            if (callCount !== 0)
+                throw new Error("Bad result. callCount should be 0.");
 
         </script>