mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
Spreadsheet: Fix invalid check in SheetGlobalObject::column_index()
This commit is contained in:
parent
8f05e4e765
commit
ca2e7b6746
Notes:
sideshowbarker
2024-07-19 00:40:10 +09:00
Author: https://github.com/alimpfard
Commit: ca2e7b6746
Pull-request: https://github.com/SerenityOS/serenity/pull/4486
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::current_cell_position)
|
|||
|
||||
JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::column_index)
|
||||
{
|
||||
if (vm.argument_count() != 2) {
|
||||
if (vm.argument_count() != 1) {
|
||||
vm.throw_exception<JS::TypeError>(global_object, "Expected exactly one argument to column_index()");
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue