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

Changeset 243294 in webkit


Ignore:
Timestamp:
Mar 21, 2019, 9:36:20 AM (7 years ago)
Author:
mark.lam@apple.com
Message:

Placate exception check validation in operationArrayIndexOfString().
https://bugs.webkit.org/show_bug.cgi?id=196067
<rdar://problem/49056572>

Reviewed by Michael Saboff.

JSTests:

  • stress/string-equal-exception-check.js: Added.

Source/JavaScriptCore:

  • dfg/DFGOperations.cpp:
Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r243280 r243294  
     12019-03-21  Mark Lam  <mark.lam@apple.com>
     2
     3        Placate exception check validation in operationArrayIndexOfString().
     4        https://bugs.webkit.org/show_bug.cgi?id=196067
     5        <rdar://problem/49056572>
     6
     7        Reviewed by Michael Saboff.
     8
     9        * stress/string-equal-exception-check.js: Added.
     10
    1112019-03-21  Mark Lam  <mark.lam@apple.com>
    212
  • trunk/Source/JavaScriptCore/ChangeLog

    r243293 r243294  
     12019-03-21  Mark Lam  <mark.lam@apple.com>
     2
     3        Placate exception check validation in operationArrayIndexOfString().
     4        https://bugs.webkit.org/show_bug.cgi?id=196067
     5        <rdar://problem/49056572>
     6
     7        Reviewed by Michael Saboff.
     8
     9        * dfg/DFGOperations.cpp:
     10
    1112019-03-21  Xan Lopez  <xan@igalia.com>
    212
  • trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp

    r243280 r243294  
    25392539        if (string == searchElement)
    25402540            return index;
    2541         if (string->equal(exec, searchElement))
     2541        if (string->equal(exec, searchElement)) {
     2542            scope.assertNoException();
    25422543            return index;
     2544        }
    25432545        RETURN_IF_EXCEPTION(scope, { });
    25442546    }
Note: See TracChangeset for help on using the changeset viewer.