WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 293106
293105
Wasm module compile error when a function contains `try_table` after `return`
https://bugs.webkit.org/show_bug.cgi?id=293105
Summary
Wasm module compile error when a function contains `try_table` after `return`
seyoon1705
Reported
2025-05-15 23:10:01 PDT
Created
attachment 475261
[details]
return_try_table.js Commit version: 9d02067f5de4b0402f58d6c83039e206439a8a8c System: Ubuntu 20.04.6 LTS, x86_64 The following Wasm module contains a function whose body is `return` and `try_table`. ``` ;; return_try_table.wat (module (func (return) (try_table)) ) ``` It is a valid Wasm module, so it must be succeed to parse and validate. However, when running `return_try_table.js`, the equivalent JavaScript file, JavaScriptCore raises compile error. ``` $ jsc return_try_table.js Exception: Error: Wasm validate failure
module@return_try_table.js
:17:20 global
code@return_try_table.js
:23:7 --> CompileError: WebAssembly.Module doesn't parse at byte 6: function body size doesn't match the expected size, in function at index 0 ```
Attachments
return_try_table.js
(810 bytes, application/x-javascript)
2025-05-15 23:10 PDT
,
seyoon1705
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2025-05-16 14:49:47 PDT
*** This bug has been marked as a duplicate of
bug 293106
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug