Pārlūkot izejas kodu

LibJS: Fix spelling mistake in one of the syntax error descriptions

Andreas Kling 4 gadi atpakaļ
vecāks
revīzija
527c639c1f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Userland/Libraries/LibJS/Parser.cpp

+ 1 - 1
Userland/Libraries/LibJS/Parser.cpp

@@ -1667,7 +1667,7 @@ NonnullRefPtr<VariableDeclaration> Parser::parse_variable_declaration(bool for_l
         }
         }
 
 
         if (target.has<Empty>()) {
         if (target.has<Empty>()) {
-            syntax_error("Expected an identifer or a binding pattern");
+            syntax_error("Expected an identifier or a binding pattern");
             if (match(TokenType::Comma)) {
             if (match(TokenType::Comma)) {
                 consume();
                 consume();
                 continue;
                 continue;