mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:57:46 +00:00
LibJS: Throw InternalErrors instead of Errors on CallStackSizeExceeded
These seem more appropriate.
This commit is contained in:
parent
7341faceeb
commit
957f54d96f
6 changed files with 9 additions and 9 deletions
|
@ -103,7 +103,7 @@ public:
|
|||
VERIFY(!exception());
|
||||
// Ensure we got some stack space left, so the next function call doesn't kill us.
|
||||
if (did_reach_stack_space_limit())
|
||||
return throw_completion<Error>(global_object, ErrorType::CallStackSizeExceeded);
|
||||
return throw_completion<InternalError>(global_object, ErrorType::CallStackSizeExceeded);
|
||||
m_execution_context_stack.append(&context);
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue