mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
LibJS: Make GetNumberOption's "options" object a const reference
This commit is contained in:
committed by
Linus Groh
parent
aa2af06c84
commit
7f700bd84e
Notes:
sideshowbarker
2024-07-18 04:10:12 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/7f700bd84e4 Pull-request: https://github.com/SerenityOS/serenity/pull/9960 Reviewed-by: https://github.com/linusg ✅
@@ -690,7 +690,7 @@ Optional<int> default_number_option(GlobalObject& global_object, Value value, in
|
||||
}
|
||||
|
||||
// 9.2.15 GetNumberOption ( options, property, minimum, maximum, fallback ), https://tc39.es/ecma402/#sec-getnumberoption
|
||||
Optional<int> get_number_option(GlobalObject& global_object, Object& options, PropertyName const& property, int minimum, int maximum, Optional<int> fallback)
|
||||
Optional<int> get_number_option(GlobalObject& global_object, Object const& options, PropertyName const& property, int minimum, int maximum, Optional<int> fallback)
|
||||
{
|
||||
auto& vm = global_object.vm();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user