Changeset 209037 in webkit


Ignore:
Timestamp:
Nov 28, 2016 3:53:33 PM (7 years ago)
Author:
mark.lam@apple.com
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):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r209036 r209037  
     12016-11-28  Mark Lam  <mark.lam@apple.com>
     2
     3        Fix exception scope verification failures in IteratorOperations.h.
     4        https://bugs.webkit.org/show_bug.cgi?id=165015
     5
     6        Reviewed by Saam Barati.
     7
     8        * runtime/IteratorOperations.h:
     9        (JSC::forEachInIterable):
     10
    1112016-11-28  Mark Lam  <mark.lam@apple.com>
    212
  • trunk/Source/JavaScriptCore/runtime/IteratorOperations.h

    r208637 r209037  
    5555    while (true) {
    5656        JSValue next = iteratorStep(exec, iterator);
    57         if (next.isFalse() || UNLIKELY(scope.exception()))
     57        if (UNLIKELY(scope.exception()) || next.isFalse())
    5858            return;
    5959
     
    6363        callback(vm, exec, nextValue);
    6464        if (UNLIKELY(scope.exception())) {
     65            scope.release();
    6566            iteratorClose(exec, iterator);
    6667            return;
Note: See TracChangeset for help on using the changeset viewer.