]> git.kaiwu.me - njs.git/commitdiff
Parser: removed dead store in await;
authorAlexander Borisov <alexander.borisov@nginx.com>
Thu, 2 Sep 2021 16:32:52 +0000 (19:32 +0300)
committerAlexander Borisov <alexander.borisov@nginx.com>
Thu, 2 Sep 2021 16:32:52 +0000 (19:32 +0300)
The bug was introduced in 92d10cd761e2.

src/njs_parser.c

index 24b4d53969d76626e795afddb02d1ca6a3871806..e02ae41365419eb20239fe056b429888e1f24632 100644 (file)
@@ -3477,8 +3477,6 @@ njs_parser_await(njs_parser_t *parser, njs_lexer_token_t *token,
         return NJS_ERROR;
     }
 
-    node = parser->node;
-
     if (scope->in_args) {
         njs_parser_syntax_error(parser, "await in arguments not supported");
         return NJS_ERROR;