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

Igor Sysoev igor at sysoev.ru
Mon Jul 11 12:10:05 UTC 2016


details:   http://hg.nginx.org/njs/rev/e4a0f80610b2
branches:  
changeset: 118:e4a0f80610b2
user:      Igor Sysoev <igor at 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),
     },
 
     {



More information about the nginx-devel mailing list