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
commit 5f950df3d4
Notes: sideshowbarker 2024-07-17 04:49:48 +09:00
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);