Ver Fonte

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

AnotherTest há 4 anos atrás
pai
commit
ca2e7b6746
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Applications/Spreadsheet/JSIntegration.cpp

+ 1 - 1
Applications/Spreadsheet/JSIntegration.cpp

@@ -151,7 +151,7 @@ JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::current_cell_position)
 
 
 JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::column_index)
 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()");
         vm.throw_exception<JS::TypeError>(global_object, "Expected exactly one argument to column_index()");
         return {};
         return {};
     }
     }