From 1123505d8b7aff4ce6b98dfc8c6918c921e82477 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Sat, 4 May 2019 17:12:35 +0300 Subject: [PATCH] Added the "name" property to the Function prototype object. Its value according to the ES6+ specification must be the empty String. --- njs/njs_function.c | 6 ++++++ 1 file changed, 6 insertions(+) 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"), -- 2.47.3