mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:17:44 +00:00
LibWasm+LibWeb: Sneak a JS::Completion into Wasm::Result
Imported functions in Wasm may throw JS exceptions, and we need to preserve these exceptions so we can pass them to the calling JS code. This also adds a `assert_wasm_result()` API to Result for cases where only Wasm traps or values are expected (e.g. internal uses) to avoid making LibWasm (pointlessly) handle JS exceptions that will never show up in reality.
This commit is contained in:
parent
1c3050245e
commit
6b50f23242
11 changed files with 95 additions and 35 deletions
|
@ -133,7 +133,7 @@ target_link_libraries(unzip PRIVATE LibArchive LibCompress LibCrypto)
|
|||
target_link_libraries(update-cpp-test-results PRIVATE LibCpp)
|
||||
target_link_libraries(useradd PRIVATE LibCrypt)
|
||||
target_link_libraries(wallpaper PRIVATE LibGfx LibGUI)
|
||||
target_link_libraries(wasm PRIVATE LibWasm LibLine)
|
||||
target_link_libraries(wasm PRIVATE LibWasm LibLine LibJS)
|
||||
target_link_libraries(wsctl PRIVATE LibGUI LibIPC)
|
||||
target_link_libraries(xml PRIVATE LibXML)
|
||||
target_link_libraries(zip PRIVATE LibArchive LibCompress LibCrypto)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue