1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:37:34 +00:00

Shell: Make Immediate expression invocation fallible

This removes a whole bunch of FIXMEs in the immediate expr
implementations as well :^)
This commit is contained in:
Ali Mohammad Pur 2023-02-18 17:14:19 +03:30 committed by Ali Mohammad Pur
parent 007767fc14
commit 5f950df3d4
3 changed files with 79 additions and 79 deletions

View file

@ -2048,7 +2048,7 @@ ErrorOr<void> ImmediateExpression::dump(int level) const
RefPtr<Value> ImmediateExpression::run(RefPtr<Shell> shell)
{
auto node = shell->run_immediate_function(m_function.name, *this, arguments());
auto node = shell->run_immediate_function(m_function.name, *this, arguments()).release_value_but_fixme_should_propagate_errors();
if (node)
return node->run(shell);