Title: [246692] trunk/Source/_javascript_Core
- Revision
- 246692
- Author
- [email protected]
- Date
- 2019-06-21 13:28:05 -0700 (Fri, 21 Jun 2019)
Log Message
Remove extra check in RegExp @matchSlow
https://bugs.webkit.org/show_bug.cgi?id=198846
Patch by Alexey Shvayka <[email protected]> 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.
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (246691 => 246692)
--- trunk/Source/_javascript_Core/ChangeLog 2019-06-21 20:01:52 UTC (rev 246691)
+++ trunk/Source/_javascript_Core/ChangeLog 2019-06-21 20:28:05 UTC (rev 246692)
@@ -1,3 +1,15 @@
+2019-06-21 Alexey Shvayka <[email protected]>
+
+ Remove extra check in RegExp @matchSlow
+ https://bugs.webkit.org/show_bug.cgi?id=198846
+
+ Reviewed by Joseph Pecoraro.
+
+ Type of RegExp `exec` result is already asserted in @regExpExec.
+
+ * builtins/RegExpPrototype.js:
+ (globalPrivate.matchSlow): Remove isObject check.
+
2019-06-20 Justin Michaud <[email protected]>
[WASM-References] Add extra tests for Wasm references + fix element parsing and subtyping bugs
Modified: trunk/Source/_javascript_Core/builtins/RegExpPrototype.js (246691 => 246692)
--- trunk/Source/_javascript_Core/builtins/RegExpPrototype.js 2019-06-21 20:01:52 UTC (rev 246691)
+++ trunk/Source/_javascript_Core/builtins/RegExpPrototype.js 2019-06-21 20:28:05 UTC (rev 246692)
@@ -127,9 +127,6 @@
if (resultList.length > maximumReasonableMatchSize)
@throwOutOfMemoryError();
- if (!@isObject(result))
- @throwTypeError("RegExp.prototype.@@match call to RegExp.exec didn't return null or an object");
-
let resultString = @toString(result[0]);
if (!resultString.length)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes