From: Valentin Bartenev Date: Sat, 4 May 2019 14:12:35 +0000 (+0300) Subject: Added the "name" property to the Function prototype object. X-Git-Tag: 0.3.2~28 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=1123505d8b7aff4ce6b98dfc8c6918c921e82477;p=njs.git Added the "name" property to the Function prototype object. Its value according to the ES6+ specification must be the empty String. --- diff --git a/njs/njs_function.c b/njs/njs_function.c index 41e9dbff..821e207b 100644 --- a/njs/njs_function.c +++ b/njs/njs_function.c @@ -1173,6 +1173,12 @@ njs_function_prototype_bind(njs_vm_t *vm, njs_value_t *args, nxt_uint_t nargs, static const njs_object_prop_t njs_function_prototype_properties[] = { + { + .type = NJS_PROPERTY, + .name = njs_string("name"), + .value = njs_string(""), + }, + { .type = NJS_PROPERTY, .name = njs_string("length"),