From: Vadim Zhestikov Date: Fri, 30 Jun 2023 13:38:36 +0000 (-0700) Subject: Added constructor name for async function. X-Git-Tag: 0.8.0~7 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=4b35660df0ce73d1f4168aa3d6d00fbf71963407;p=njs.git Added constructor name for async function. --- diff --git a/src/njs_async.c b/src/njs_async.c index 3a4dd876..7b3b9331 100644 --- a/src/njs_async.c +++ b/src/njs_async.c @@ -163,6 +163,8 @@ njs_async_context_free(njs_vm_t *vm, njs_async_ctx_t *ctx) static const njs_object_prop_t njs_async_constructor_properties[] = { + NJS_DECLARE_PROP_NAME("AsyncFunction"), + NJS_DECLARE_PROP_LENGTH(1), NJS_DECLARE_PROP_HANDLER("prototype", njs_object_prototype_create, 0, 0, 0),