Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 95db096dfd5b0763a50b6f257e791ed5def4d62c
https://github.com/WebKit/WebKit/commit/95db096dfd5b0763a50b6f257e791ed5def4d62c
Author: Shu-yu Guo <[email protected]>
Date: 2025-08-08 (Fri, 08 Aug 2025)
Changed paths:
M Source/JavaScriptCore/runtime/StringConstructor.cpp
M Source/JavaScriptCore/runtime/Symbol.cpp
M Source/JavaScriptCore/runtime/Symbol.h
M Source/JavaScriptCore/runtime/SymbolPrototype.cpp
Log Message:
-----------
[JSC] Throw instead of crash on OOM in Symbol.p.toString
https://bugs.webkit.org/show_bug.cgi?id=297157
rdar://157756003
Reviewed by Yusuke Suzuki.
Change Symbol.prototype.toString and calling the String constructor on symbols
to not crash on OOM. Where possible, OOMs should be thrown as JS exceptions and
not hard crash the process for a better UX.
The crashing, infallible JSC::Symbol::descriptiveString method is removed.
Canonical link: https://commits.webkit.org/298459@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes