1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00
serenity/Userland/Libraries/LibWeb/WebAssembly
Ali Mohammad Pur 6b50f23242 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.
2023-02-26 10:54:23 +03:30
..
WebAssemblyInstanceConstructor.cpp LibJS+Everywhere: Propagate Cell::initialize errors from Heap::allocate 2023-01-29 00:02:45 +00:00
WebAssemblyInstanceConstructor.h LibJS+Everywhere: Allow Cell::initialize overrides to throw OOM errors 2023-01-29 00:02:45 +00:00
WebAssemblyInstanceObject.cpp LibJS+Everywhere: Propagate Cell::initialize errors from Heap::allocate 2023-01-29 00:02:45 +00:00
WebAssemblyInstanceObject.h LibJS+Everywhere: Allow Cell::initialize overrides to throw OOM errors 2023-01-29 00:02:45 +00:00
WebAssemblyInstanceObjectPrototype.cpp LibJS+Everywhere: Allow Cell::initialize overrides to throw OOM errors 2023-01-29 00:02:45 +00:00
WebAssemblyInstanceObjectPrototype.h LibJS+Everywhere: Allow Cell::initialize overrides to throw OOM errors 2023-01-29 00:02:45 +00:00
WebAssemblyMemoryConstructor.cpp LibJS+Everywhere: Convert JS::Error to String 2023-02-17 09:14:23 -05:00
WebAssemblyMemoryConstructor.h LibJS+Everywhere: Allow Cell::initialize overrides to throw OOM errors 2023-01-29 00:02:45 +00:00
WebAssemblyMemoryPrototype.cpp LibJS+Everywhere: Convert JS::Error to String 2023-02-17 09:14:23 -05:00
WebAssemblyMemoryPrototype.h LibJS+Everywhere: Allow Cell::initialize overrides to throw OOM errors 2023-01-29 00:02:45 +00:00
WebAssemblyModuleConstructor.cpp LibJS+Everywhere: Propagate Cell::initialize errors from Heap::allocate 2023-01-29 00:02:45 +00:00
WebAssemblyModuleConstructor.h LibJS+Everywhere: Allow Cell::initialize overrides to throw OOM errors 2023-01-29 00:02:45 +00:00
WebAssemblyModuleObject.cpp LibWeb: Generate dedicated methods to create Web constructors/prototypes 2023-01-10 16:08:14 +01:00
WebAssemblyModuleObject.h LibJS+LibWeb: Replace GlobalObject with Realm in object constructors 2022-08-23 13:58:30 +01:00
WebAssemblyModulePrototype.h LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
WebAssemblyObject.cpp LibWasm+LibWeb: Sneak a JS::Completion into Wasm::Result 2023-02-26 10:54:23 +03:30
WebAssemblyObject.h LibJS+Everywhere: Allow Cell::initialize overrides to throw OOM errors 2023-01-29 00:02:45 +00:00
WebAssemblyTableConstructor.cpp LibJS+Everywhere: Convert JS::Error to String 2023-02-17 09:14:23 -05:00
WebAssemblyTableConstructor.h LibJS+Everywhere: Allow Cell::initialize overrides to throw OOM errors 2023-01-29 00:02:45 +00:00
WebAssemblyTableObject.cpp LibWeb: Generate dedicated methods to create Web constructors/prototypes 2023-01-10 16:08:14 +01:00
WebAssemblyTableObject.h LibJS+LibWeb: Replace GlobalObject with Realm in object constructors 2022-08-23 13:58:30 +01:00
WebAssemblyTablePrototype.cpp LibJS+Everywhere: Convert JS::Error to String 2023-02-17 09:14:23 -05:00
WebAssemblyTablePrototype.h LibJS+Everywhere: Allow Cell::initialize overrides to throw OOM errors 2023-01-29 00:02:45 +00:00