From: Dmitry Volyntsev Date: Fri, 3 Sep 2021 14:57:50 +0000 (+0000) Subject: Fixed AsyncFunction prototype property "name". X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=02fcfbf472ac9aa109ae6ff6153264bb0ab1fea6;p=njs.git Fixed AsyncFunction prototype property "name". According to the spec the AsyncFunction prototype does not have own property "name". --- diff --git a/src/njs_async.c b/src/njs_async.c index f27c2eeb..b5f6c3a6 100644 --- a/src/njs_async.c +++ b/src/njs_async.c @@ -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),