Title: [209037] trunk/Source/_javascript_Core
Revision
209037
Author
[email protected]
Date
2016-11-28 15:53:33 -0800 (Mon, 28 Nov 2016)

Log Message

Fix exception scope verification failures in IteratorOperations.h.
https://bugs.webkit.org/show_bug.cgi?id=165015

Reviewed by Saam Barati.

* runtime/IteratorOperations.h:
(JSC::forEachInIterable):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (209036 => 209037)


--- trunk/Source/_javascript_Core/ChangeLog	2016-11-28 23:50:16 UTC (rev 209036)
+++ trunk/Source/_javascript_Core/ChangeLog	2016-11-28 23:53:33 UTC (rev 209037)
@@ -1,5 +1,15 @@
 2016-11-28  Mark Lam  <[email protected]>
 
+        Fix exception scope verification failures in IteratorOperations.h.
+        https://bugs.webkit.org/show_bug.cgi?id=165015
+
+        Reviewed by Saam Barati.
+
+        * runtime/IteratorOperations.h:
+        (JSC::forEachInIterable):
+
+2016-11-28  Mark Lam  <[email protected]>
+
         Fix exception scope verification failures in JSArray* files.
         https://bugs.webkit.org/show_bug.cgi?id=165016
 

Modified: trunk/Source/_javascript_Core/runtime/IteratorOperations.h (209036 => 209037)


--- trunk/Source/_javascript_Core/runtime/IteratorOperations.h	2016-11-28 23:50:16 UTC (rev 209036)
+++ trunk/Source/_javascript_Core/runtime/IteratorOperations.h	2016-11-28 23:53:33 UTC (rev 209037)
@@ -54,7 +54,7 @@
     RETURN_IF_EXCEPTION(scope, void());
     while (true) {
         JSValue next = iteratorStep(exec, iterator);
-        if (next.isFalse() || UNLIKELY(scope.exception()))
+        if (UNLIKELY(scope.exception()) || next.isFalse())
             return;
 
         JSValue nextValue = iteratorValue(exec, next);
@@ -62,6 +62,7 @@
 
         callback(vm, exec, nextValue);
         if (UNLIKELY(scope.exception())) {
+            scope.release();
             iteratorClose(exec, iterator);
             return;
         }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to