Welcome! Log In Create A New Profile

Advanced

[njs] Needless argument checkers for String.toLowerCase()

July 11, 2016 08:12AM
details: http://hg.nginx.org/njs/rev/e4a0f80610b2
branches:
changeset: 118:e4a0f80610b2
user: Igor Sysoev <igor@sysoev.ru>
date: Fri Jul 08 18:13:00 2016 +0300
description:
Needless argument checkers for String.toLowerCase()
and String.toUpperCase() have been removed.

diffstat:

njs/njs_string.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 6888c62477a0 -r e4a0f80610b2 njs/njs_string.c
--- a/njs/njs_string.c Fri Jul 08 18:07:57 2016 +0300
+++ b/njs/njs_string.c Fri Jul 08 18:13:00 2016 +0300
@@ -2075,14 +2075,14 @@ static const njs_object_prop_t njs_stri
.type = NJS_METHOD,
.name = njs_string("toLowerCase"),
.value = njs_native_function(njs_string_prototype_to_lower_case, 0,
- NJS_STRING_OBJECT_ARG, NJS_REGEXP_ARG),
+ NJS_STRING_OBJECT_ARG),
},

{
.type = NJS_METHOD,
.name = njs_string("toUpperCase"),
.value = njs_native_function(njs_string_prototype_to_upper_case, 0,
- NJS_STRING_OBJECT_ARG, NJS_REGEXP_ARG),
+ NJS_STRING_OBJECT_ARG),
},

{

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Needless argument checkers for String.toLowerCase()

Igor Sysoev 799 July 11, 2016 08:12AM



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

Online Users

Guests: 134
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready