Mercurial > njs
changeset 2170:e85aaeaa7e55
Added constructor name for async function.
| author | Vadim Zhestikov <v.zhestikov@f5.com> |
|---|---|
| date | Fri, 30 Jun 2023 06:38:36 -0700 |
| parents | 453f5503de13 |
| children | 494796d6d7f8 |
| files | src/njs_async.c |
| diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/njs_async.c Thu Jun 29 20:44:14 2023 -0700 +++ b/src/njs_async.c Fri Jun 30 06:38:36 2023 -0700 @@ -163,6 +163,8 @@ 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),
