]> git.kaiwu.me - njs.git/commitdiff
Fixed AsyncFunction prototype property "name".
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 3 Sep 2021 14:57:50 +0000 (14:57 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Fri, 3 Sep 2021 14:57:50 +0000 (14:57 +0000)
According to the spec the AsyncFunction prototype does not
have own property "name".

src/njs_async.c

index f27c2eebf8984a2799a31e60b690a9893c9e5f71..b5f6c3a65903157b664e92b7030f0454b8a7a14f 100644 (file)
@@ -195,13 +195,6 @@ const njs_object_init_t  njs_async_constructor_init = {
 
 static const njs_object_prop_t  njs_async_prototype_properties[] =
 {
-    {
-        .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),