Title: [287901] trunk/Source/_javascript_Core
- Revision
- 287901
- Author
- [email protected]
- Date
- 2022-01-11 15:41:15 -0800 (Tue, 11 Jan 2022)
Log Message
[JSC] Fix kind of error thrown by wasm module creation
https://bugs.webkit.org/show_bug.cgi?id=235082
Reviewed by Michael Saboff.
It should throw WebAssembly.CompileError instead of WebAssembly.LinkError.
This fixes occasional failure in wasm imports-oom.js test.
* wasm/js/JSWebAssemblyModule.cpp:
(JSC::JSWebAssemblyModule::createStub):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (287900 => 287901)
--- trunk/Source/_javascript_Core/ChangeLog 2022-01-11 23:38:17 UTC (rev 287900)
+++ trunk/Source/_javascript_Core/ChangeLog 2022-01-11 23:41:15 UTC (rev 287901)
@@ -1,3 +1,16 @@
+2022-01-11 Yusuke Suzuki <[email protected]>
+
+ [JSC] Fix kind of error thrown by wasm module creation
+ https://bugs.webkit.org/show_bug.cgi?id=235082
+
+ Reviewed by Michael Saboff.
+
+ It should throw WebAssembly.CompileError instead of WebAssembly.LinkError.
+ This fixes occasional failure in wasm imports-oom.js test.
+
+ * wasm/js/JSWebAssemblyModule.cpp:
+ (JSC::JSWebAssemblyModule::createStub):
+
2022-01-11 Adrian Perez de Castro <[email protected]>
Non-unified build fixes, early January 2022 edition
Modified: trunk/Source/_javascript_Core/wasm/js/JSWebAssemblyModule.cpp (287900 => 287901)
--- trunk/Source/_javascript_Core/wasm/js/JSWebAssemblyModule.cpp 2022-01-11 23:38:17 UTC (rev 287900)
+++ trunk/Source/_javascript_Core/wasm/js/JSWebAssemblyModule.cpp 2022-01-11 23:41:15 UTC (rev 287901)
@@ -45,9 +45,7 @@
{
auto scope = DECLARE_THROW_SCOPE(vm);
if (!result.has_value()) {
- auto* error = createJSWebAssemblyCompileError(globalObject, vm, result.error());
- RETURN_IF_EXCEPTION(scope, nullptr);
- throwException(globalObject, scope, error);
+ throwException(globalObject, scope, createJSWebAssemblyCompileError(globalObject, vm, result.error()));
return nullptr;
}
@@ -58,7 +56,7 @@
if (UNLIKELY(!error)) {
switch (error.error()) {
case Wasm::BindingFailure::OutOfMemory:
- throwException(globalObject, scope, createJSWebAssemblyLinkError(globalObject, vm, "Out of executable memory"_s));
+ throwException(globalObject, scope, createJSWebAssemblyCompileError(globalObject, vm, "Out of executable memory"_s));
return nullptr;
}
ASSERT_NOT_REACHED();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes