1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 18:35:09 +00:00

Spreadsheet: Fix invalid check in SheetGlobalObject::column_index()

This commit is contained in:
AnotherTest 2020-12-22 12:55:32 +03:30 committed by Andreas Kling
parent 8f05e4e765
commit ca2e7b6746

View file

@ -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 {};
}