Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bef9d7e632940bd8daf7b74789be91a2a76c3023
https://github.com/WebKit/WebKit/commit/bef9d7e632940bd8daf7b74789be91a2a76c3023
Author: Yusuke Suzuki <[email protected]>
Date: 2026-09-29 (Tue, 29 Sep 2026)
Changed paths:
A JSTests/stress/to-number-string-first-character.js
M Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
Log Message:
-----------
[JSC] Quickly reject ToNumber("non-number-string")
https://bugs.webkit.org/show_bug.cgi?id=325591
rdar://188664175
Reviewed by Vassili Bykov.
Add quick rejection path to ToNumber("non-number-string") as it is
frequently happening.
Test: JSTests/stress/to-number-string-first-character.js
* JSTests/stress/to-number-string-first-character.js: Added.
(shouldBe):
(toNumber):
(looseEqual):
* Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp:
(JSC::toDouble):
Canonical link: https://commits.webkit.org/322140@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications