[njs] Fixed AST debug with tokens added with async/await feature (0.7.0).
Vadim Zhestikov
v.zhestikov at f5.com
Fri Jul 15 23:06:57 UTC 2022
details: https://hg.nginx.org/njs/rev/0a2bd6c71db4
branches:
changeset: 1911:0a2bd6c71db4
user: Vadim Zhestikov <v.zhestikov at f5.com>
date: Fri Jul 15 15:44:27 2022 -0700
description:
Fixed AST debug with tokens added with async/await feature (0.7.0).
diffstat:
src/njs_parser.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 56a890599de2 -r 0a2bd6c71db4 src/njs_parser.c
--- a/src/njs_parser.c Fri Jul 15 15:44:16 2022 -0700
+++ b/src/njs_parser.c Fri Jul 15 15:44:27 2022 -0700
@@ -9145,8 +9145,11 @@ njs_parser_serialize_node(njs_chb_t *cha
njs_token_serialize(NJS_TOKEN_PROTO_INIT);
njs_token_serialize(NJS_TOKEN_FUNCTION);
+ njs_token_serialize(NJS_TOKEN_ASYNC_FUNCTION);
njs_token_serialize(NJS_TOKEN_FUNCTION_DECLARATION);
+ njs_token_serialize(NJS_TOKEN_ASYNC_FUNCTION_DECLARATION);
njs_token_serialize(NJS_TOKEN_FUNCTION_EXPRESSION);
+ njs_token_serialize(NJS_TOKEN_ASYNC_FUNCTION_EXPRESSION);
njs_token_serialize(NJS_TOKEN_FUNCTION_CALL);
njs_token_serialize(NJS_TOKEN_METHOD_CALL);
More information about the nginx-devel
mailing list