Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d8b63073f0c5e0cdd1949ce3d246c183e3a13932
https://github.com/WebKit/WebKit/commit/d8b63073f0c5e0cdd1949ce3d246c183e3a13932
Author: Anand Srinivasan <[email protected]>
Date: 2026-05-23 (Sat, 23 May 2026)
Changed paths:
A JSTests/wasm/stress/wasm-imported-string-oom-exception.js
M Source/JavaScriptCore/wasm/js/WebAssemblyCompileOptions.cpp
Log Message:
-----------
WebAssemblyCompileOptions::tryCreate should throw on OOM
https://bugs.webkit.org/show_bug.cgi?id=310576
rdar://173135164
Reviewed by Yusuke Suzuki, Yijia Huang, and Dan Hecht.
When importing string constants, WebAssemblyCompileOptions::tryCreate
may run out of memory when trying to convert a big enough rope to a
string, in which case it should throw an out of memory exception,
which is not currently done.
Test: JSTests/wasm/stress/wasm-imported-string-oom-exception.js
* JSTests/wasm/stress/wasm-imported-string-oom-exception.js: Added.
(main):
(catch):
* Source/JavaScriptCore/wasm/js/WebAssemblyCompileOptions.cpp:
(JSC::WebAssemblyCompileOptions::tryCreate):
Originally-landed-as: 305413.610@rapid/safari-7624.2.5.110-branch
(5a151853d699). rdar://176062426
Canonical link: https://commits.webkit.org/313797@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications