Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d21256503ee6c71f334de5ae962e89c018ff70b6
https://github.com/WebKit/WebKit/commit/d21256503ee6c71f334de5ae962e89c018ff70b6
Author: Keita Nonaka <[email protected]>
Date: 2026-01-20 (Tue, 20 Jan 2026)
Changed paths:
A JSTests/microbenchmarks/regexp-non-numeric-limit.js
M JSTests/test262/expectations.yaml
M Source/JavaScriptCore/builtins/RegExpPrototype.js
Log Message:
-----------
[JSC] `RegExp.prototype [ %Symbol.split% ]` Incorrectly Uses Fast Path when
`limit` is not a Number
https://bugs.webkit.org/show_bug.cgi?id=305192
Reviewed by Yusuke Suzuki.
This patch fixes `RegExp.prototype[%Symbol.split%]`
because incorrectly uses fast path when `limit` is not a number or undefined
[1][2].
[1]:
https://github.com/tc39/test262/blob/6251b55fc6e46be41243e88ce73fcd04dd5069f2/test/staging/sm/RegExp/split-limit.js
[2]: https://bugzilla.mozilla.org/show_bug.cgi?id=1287525
Test: JSTests/microbenchmarks/regexp-non-numeric-limit.js
* JSTests/microbenchmarks/regexp-non-numeric-limit.js: Added.
(test):
(i.test):
* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/builtins/RegExpPrototype.js:
(overriddenName.string_appeared_here.split):
Canonical link: https://commits.webkit.org/305879@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications