mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 01:26:22 +00:00
LibJS: Replace the boolean argument of Object::set with an enum class
This is more serenity-esque and also makes pointing out missing exception checks during reviews much easier.
This commit is contained in:
parent
4b39e718b3
commit
8d01d43f5e
Notes:
sideshowbarker
2024-07-18 08:56:03 +09:00
Author: https://github.com/IdanHo
Commit: 8d01d43f5e
Pull-request: https://github.com/SerenityOS/serenity/pull/8804
17 changed files with 73 additions and 66 deletions
|
@ -225,7 +225,7 @@ void GlobalEnvironment::create_global_function_binding(FlyString const& name, Va
|
|||
global_object.define_property_or_throw(name, desc);
|
||||
if (vm.exception())
|
||||
return;
|
||||
global_object.set(name, value, false);
|
||||
global_object.set(name, value, Object::ShouldThrowExceptions::Yes);
|
||||
if (vm.exception())
|
||||
return;
|
||||
if (!m_var_names.contains_slow(name))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue