Welcome! Log In Create A New Profile

Advanced

[njs] Added the "name" property to the Function prototype object.

Valentin Bartenev
May 04, 2019 10:18AM
details: https://hg.nginx.org/njs/rev/0c42e997371c
branches:
changeset: 945:0c42e997371c
user: Valentin Bartenev <vbart@nginx.com>
date: Sat May 04 17:12:35 2019 +0300
description:
Added the "name" property to the Function prototype object.

Its value according to the ES6+ specification must be the empty String.

diffstat:

njs/njs_function.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r b7cdfafdc20b -r 0c42e997371c njs/njs_function.c
--- a/njs/njs_function.c Sat May 04 16:59:24 2019 +0300
+++ b/njs/njs_function.c Sat May 04 17:12:35 2019 +0300
@@ -1175,6 +1175,12 @@ static const njs_object_prop_t njs_func
{
{
.type = NJS_PROPERTY,
+ .name = njs_string("name"),
+ .value = njs_string(""),
+ },
+
+ {
+ .type = NJS_PROPERTY,
.name = njs_string("length"),
.value = njs_value(NJS_NUMBER, 0, 0.0),
},
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Added the "name" property to the Function prototype object.

Valentin Bartenev 317 May 04, 2019 10:18AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 303
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready