mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +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
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