mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
LibWasm: Give traps a reason and display it when needed
This makes debugging wasm code a bit easier, as we now know what fails instead of just "too bad, something went wrong".
This commit is contained in:
parent
62ca81fdcc
commit
b538e15548
10 changed files with 54 additions and 50 deletions
|
@ -38,6 +38,6 @@ static constexpr auto page_size = 64 * KiB;
|
|||
|
||||
// Limits
|
||||
static constexpr auto max_allowed_call_stack_depth = 1000;
|
||||
static constexpr auto max_allowed_executed_instructions_per_call = 64 * 1024 * 1024;
|
||||
static constexpr auto max_allowed_executed_instructions_per_call = 1024 * 1024 * 1024;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue