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

Changeset 236505 in webkit


Ignore:
Timestamp:
Sep 26, 2018, 9:12:42 AM (8 years ago)
Author:
yusukesuzuki@slowstart.org
Message:

Unreviewed, add scope verification handling
https://bugs.webkit.org/show_bug.cgi?id=189780

  • runtime/ArrayPrototype.cpp:

(JSC::arrayProtoFuncIndexOf):
(JSC::arrayProtoFuncLastIndexOf):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r236499 r236505  
     12018-09-26  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
     2
     3        Unreviewed, add scope verification handling
     4        https://bugs.webkit.org/show_bug.cgi?id=189780
     5
     6        * runtime/ArrayPrototype.cpp:
     7        (JSC::arrayProtoFuncIndexOf):
     8        (JSC::arrayProtoFuncLastIndexOf):
     9
    1102018-09-26  Koby Boyango  <koby.b@mce.systems>
    211
  • trunk/Source/JavaScriptCore/runtime/ArrayPrototype.cpp

    r236496 r236505  
    12701270
    12711271    if (isJSArray(thisObject)) {
    1272         if (JSValue result = fastIndexOf<IndexOfDirection::Forward>(exec, vm, asArray(thisObject), length, searchElement, index))
     1272        JSValue result = fastIndexOf<IndexOfDirection::Forward>(exec, vm, asArray(thisObject), length, searchElement, index);
     1273        RETURN_IF_EXCEPTION(scope, { });
     1274        if (result)
    12731275            return JSValue::encode(result);
    12741276    }
     
    13191321
    13201322    if (isJSArray(thisObject)) {
    1321         if (JSValue result = fastIndexOf<IndexOfDirection::Backward>(exec, vm, asArray(thisObject), length, searchElement, index))
     1323        JSValue result = fastIndexOf<IndexOfDirection::Backward>(exec, vm, asArray(thisObject), length, searchElement, index);
     1324        RETURN_IF_EXCEPTION(scope, { });
     1325        if (result)
    13221326            return JSValue::encode(result);
    13231327    }
Note: See TracChangeset for help on using the changeset viewer.