[njs] Fixed AsyncFunction prototype property "name".

Dmitry Volyntsev xeioex at nginx.com
Fri Sep 3 14:58:09 UTC 2021


details:   https://hg.nginx.org/njs/rev/91d9301684db
branches:  
changeset: 1705:91d9301684db
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Fri Sep 03 14:57:50 2021 +0000
description:
Fixed AsyncFunction prototype property "name".

According to the spec the AsyncFunction prototype does not
have own property "name".

diffstat:

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

diffs (17 lines):

diff -r 68f8f7ead0fc -r 91d9301684db src/njs_async.c
--- a/src/njs_async.c	Thu Sep 02 19:33:32 2021 +0300
+++ b/src/njs_async.c	Fri Sep 03 14:57:50 2021 +0000
@@ -197,13 +197,6 @@ static const njs_object_prop_t  njs_asyn
 {
     {
         .type = NJS_PROPERTY,
-        .name = njs_string("name"),
-        .value = njs_string("AsyncFunction"),
-        .configurable = 1,
-    },
-
-    {
-        .type = NJS_PROPERTY,
         .name = njs_wellknown_symbol(NJS_SYMBOL_TO_STRING_TAG),
         .value = njs_string("AsyncFunction"),
         .configurable = 1,


More information about the nginx-devel mailing list