[njs] Parser: removed dead store in await;

Alexander Borisov alexander.borisov at nginx.com
Thu Sep 2 16:35:01 UTC 2021


details:   https://hg.nginx.org/njs/rev/f2410c8b80d9
branches:  
changeset: 1702:f2410c8b80d9
user:      Alexander Borisov <alexander.borisov at nginx.com>
date:      Thu Sep 02 19:32:52 2021 +0300
description:
Parser: removed dead store in await;

The bug was introduced in 92d10cd761e2.

diffstat:

 src/njs_parser.c |  2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diffs (12 lines):

diff -r cd87eaf03e4f -r f2410c8b80d9 src/njs_parser.c
--- a/src/njs_parser.c	Thu Sep 02 19:32:34 2021 +0300
+++ b/src/njs_parser.c	Thu Sep 02 19:32:52 2021 +0300
@@ -3477,8 +3477,6 @@ njs_parser_await(njs_parser_t *parser, n
         return NJS_ERROR;
     }
 
-    node = parser->node;
-
     if (scope->in_args) {
         njs_parser_syntax_error(parser, "await in arguments not supported");
         return NJS_ERROR;


More information about the nginx-devel mailing list