From ca2e7b67466d0d7b0176f20674d72c8a1b5f2ed5 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Tue, 22 Dec 2020 12:55:32 +0330 Subject: [PATCH] Spreadsheet: Fix invalid check in SheetGlobalObject::column_index() --- Applications/Spreadsheet/JSIntegration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Spreadsheet/JSIntegration.cpp b/Applications/Spreadsheet/JSIntegration.cpp index 5feddc9bf2..f027ceb870 100644 --- a/Applications/Spreadsheet/JSIntegration.cpp +++ b/Applications/Spreadsheet/JSIntegration.cpp @@ -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(global_object, "Expected exactly one argument to column_index()"); return {}; }