LibJS: Update empty TryStatement result value to undefined

It's what the spec wants us to do, although I'm not sure if it has an
observable effect anywhere, as we don't expose empty values. Let's do it
anyway.
This commit is contained in:
Linus Groh 2021-04-13 00:58:54 +02:00 committed by Andreas Kling
commit f2abe42ecb
Notes: sideshowbarker 2024-07-18 20:25:40 +09:00

View file

@ -2013,7 +2013,7 @@ Value TryStatement::execute(Interpreter& interpreter, GlobalObject& global_objec
}
}
return result;
return result.value_or(js_undefined());
}
Value CatchClause::execute(Interpreter& interpreter, GlobalObject&) const