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
parent 7cbede4342
commit f2abe42ecb

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