mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-09 12:42:54 +00:00
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.
15 lines
434 B
CMake
15 lines
434 B
CMake
set(SOURCES
|
|
AbstractMachine/AbstractMachine.cpp
|
|
AbstractMachine/BytecodeInterpreter.cpp
|
|
AbstractMachine/Configuration.cpp
|
|
AbstractMachine/Validator.cpp
|
|
Parser/Parser.cpp
|
|
Printer/Printer.cpp
|
|
)
|
|
|
|
serenity_lib(LibWasm wasm)
|
|
target_link_libraries(LibWasm PRIVATE LibCore LibJS)
|
|
|
|
# FIXME: Install these into usr/Tests/LibWasm
|
|
include(wasm_spec_tests)
|
|
install(DIRECTORY Tests/ DESTINATION home/anon/Tests/wasm-tests)
|