Changeset 246692 in webkit


Ignore:
Timestamp:
Jun 21, 2019 1:28:05 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Remove extra check in RegExp @matchSlow
https://bugs.webkit.org/show_bug.cgi?id=198846

Patch by Alexey Shvayka <Alexey Shvayka> on 2019-06-21
Reviewed by Joseph Pecoraro.

Type of RegExp exec result is already asserted in @regExpExec.

  • builtins/RegExpPrototype.js:

(globalPrivate.matchSlow): Remove isObject check.

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r246645 r246692  
     12019-06-21  Alexey Shvayka  <shvaikalesh@gmail.com>
     2
     3        Remove extra check in RegExp @matchSlow
     4        https://bugs.webkit.org/show_bug.cgi?id=198846
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        Type of RegExp `exec` result is already asserted in @regExpExec.
     9
     10        * builtins/RegExpPrototype.js:
     11        (globalPrivate.matchSlow): Remove isObject check.
     12
    1132019-06-20  Justin Michaud  <justin_michaud@apple.com>
    214
  • trunk/Source/JavaScriptCore/builtins/RegExpPrototype.js

    r246567 r246692  
    127127        if (resultList.length > maximumReasonableMatchSize)
    128128            @throwOutOfMemoryError();
    129 
    130         if (!@isObject(result))
    131             @throwTypeError("RegExp.prototype.@@match call to RegExp.exec didn't return null or an object");
    132129
    133130        let resultString = @toString(result[0]);
Note: See TracChangeset for help on using the changeset viewer.