⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 236122 in webkit


Ignore:
Timestamp:
Sep 18, 2018, 6:32:12 AM (8 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r235540 - Add missing exception check in arrayProtoFuncLastIndexOf().
https://bugs.webkit.org/show_bug.cgi?id=189184
<rdar://problem/39785959>

Reviewed by Yusuke Suzuki.

JSTests:

  • stress/regress-189184.js: Added.

Source/JavaScriptCore:

  • runtime/ArrayPrototype.cpp:

(JSC::arrayProtoFuncLastIndexOf):

Location:
releases/WebKitGTK/webkit-2.22
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.22/JSTests/ChangeLog

    r236121 r236122  
     12018-08-31  Mark Lam  <mark.lam@apple.com>
     2
     3        Add missing exception check in arrayProtoFuncLastIndexOf().
     4        https://bugs.webkit.org/show_bug.cgi?id=189184
     5        <rdar://problem/39785959>
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        * stress/regress-189184.js: Added.
     10
    1112018-08-31  Saam barati  <sbarati@apple.com>
    212
  • releases/WebKitGTK/webkit-2.22/Source/JavaScriptCore/ChangeLog

    r236121 r236122  
     12018-08-31  Mark Lam  <mark.lam@apple.com>
     2
     3        Add missing exception check in arrayProtoFuncLastIndexOf().
     4        https://bugs.webkit.org/show_bug.cgi?id=189184
     5        <rdar://problem/39785959>
     6
     7        Reviewed by Yusuke Suzuki.
     8
     9        * runtime/ArrayPrototype.cpp:
     10        (JSC::arrayProtoFuncLastIndexOf):
     11
    1122018-08-31  Saam barati  <sbarati@apple.com>
    213
  • releases/WebKitGTK/webkit-2.22/Source/JavaScriptCore/runtime/ArrayPrototype.cpp

    r236061 r236122  
    12161216        if (!e)
    12171217            continue;
    1218         if (JSValue::strictEqual(exec, searchElement, e))
     1218        bool isEqual = JSValue::strictEqual(exec, searchElement, e);
     1219        RETURN_IF_EXCEPTION(scope, encodedJSValue());
     1220        if (isEqual)
    12191221            return JSValue::encode(jsNumber(index));
    1220         RETURN_IF_EXCEPTION(scope, encodedJSValue());
    12211222    } while (index--);
    12221223
Note: See TracChangeset for help on using the changeset viewer.