mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 18:31:13 +00:00
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:
parent
7cbede4342
commit
f2abe42ecb
Notes:
sideshowbarker
2024-07-18 20:25:40 +09:00
Author: https://github.com/linusg
Commit: f2abe42ecb
Pull-request: https://github.com/SerenityOS/serenity/pull/6284
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue