[njs] Renaming remnants of "nJScript" and "njscript" to "njs".

Dmitry Volyntsev xeioex at nginx.com
Thu May 31 15:53:05 UTC 2018


details:   http://hg.nginx.org/njs/rev/e38c3f59e30c
branches:  
changeset: 529:e38c3f59e30c
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Thu May 31 16:34:36 2018 +0300
description:
Renaming remnants of "nJScript" and "njscript" to "njs".

diffstat:

 CHANGES                      |  24 ++++++++++++------------
 njs/njs_shell.c              |   2 +-
 njs/test/njs_expect_test.exp |   2 +-
 njs/test/njs_unit_test.c     |   4 ++--
 4 files changed, 16 insertions(+), 16 deletions(-)

diffs (134 lines):

diff -r 143a7f9db504 -r e38c3f59e30c CHANGES
--- a/CHANGES	Wed May 30 17:17:13 2018 +0300
+++ b/CHANGES	Thu May 31 16:34:36 2018 +0300
@@ -1,5 +1,5 @@
 
-Changes with nJScript 0.2.0                                      3 Apr 2018
+Changes with njs 0.2.0                                           3 Apr 2018
 
     *) Feature: reporting njs version by CLI.
 
@@ -20,7 +20,7 @@ Changes with nJScript 0.2.0             
     *) Bugfix: miscellaneous bugs have been fixed in the core and
        interactive shell.
 
-Changes with nJScript 0.1.15                                     20 Nov 2017
+Changes with njs 0.1.15                                          20 Nov 2017
 
     *) Feature: Error, EvalError, InternalError, RangeError,
        ReferenceError, SyntaxError, TypeError, URIError objects.
@@ -35,7 +35,7 @@ Changes with nJScript 0.1.15            
 
     *) Bugfix: miscellaneous bugs have been fixed.
 
-Changes with nJScript 0.1.14                                     09 Oct 2017
+Changes with njs 0.1.14                                          09 Oct 2017
 
     *) Feature: JSON object.
 
@@ -46,7 +46,7 @@ Changes with nJScript 0.1.14            
     *) Bugfix: miscellaneous bugs have been fixed in the core and
        interactive shell.
 
-Changes with nJScript 0.1.13                                     31 Aug 2017
+Changes with njs 0.1.13                                          31 Aug 2017
 
     *) Feature: console.log() and console.help() methods in interactive
        shell.
@@ -59,13 +59,13 @@ Changes with nJScript 0.1.13            
 
     *) Bugfix: improved editline detection.
 
-Changes with nJScript 0.1.12                                     08 Aug 2017
+Changes with njs 0.1.12                                          08 Aug 2017
 
     *) Feature: Interactive shell.
 
     *) Bugfix: in Object.isSealed().
 
-Changes with nJScript 0.1.11                                     27 Jun 2017
+Changes with njs 0.1.11                                          27 Jun 2017
 
     *) Feature: Object.keys(), Object.prototype.hasOwnProperty() methods.
 
@@ -87,7 +87,7 @@ Changes with nJScript 0.1.11            
 
     *) Bugfix: in parseInt() and Date.parse().
 
-Changes with nJScript 0.1.10                                     04 Apr 2017
+Changes with njs 0.1.10                                          04 Apr 2017
 
     *) Feature: nested functions and function closures.
 
@@ -96,12 +96,12 @@ Changes with nJScript 0.1.10            
 
     *) Bugfix: miscellaneous bugs and segmentation faults have been fixed.
 
-Changes with nJScript 0.1.9                                      01 Feb 2017
+Changes with njs 0.1.9                                           01 Feb 2017
 
-    *) Bugfix: global variables were not initialized when nJScript was used
+    *) Bugfix: global variables were not initialized when njs was used
        in nginx.
 
-Changes with nJScript 0.1.8                                      24 Jan 2017
+Changes with njs 0.1.8                                           24 Jan 2017
 
     *) Change: the "strict" mode is enforced, variables must be explicitly
        declared.
@@ -115,7 +115,7 @@ Changes with nJScript 0.1.8             
 
     *) Bugfix: miscellaneous bugs and segmentation faults have been fixed.
 
-Changes with nJScript 0.1.7                                      27 Dec 2016
+Changes with njs 0.1.7                                           27 Dec 2016
 
     *) Change: the "js_include" directive has been disabled at server and
        location levels.
@@ -124,7 +124,7 @@ Changes with nJScript 0.1.7             
 
     *) Bugfix: miscellaneous bugs and segmentation faults have been fixed.
 
-Changes with nJScript 0.1.6                                      13 Dec 2016
+Changes with njs 0.1.6                                           13 Dec 2016
 
     *) Change: the "js_set" directive has been disabled at server and
        location levels.
diff -r 143a7f9db504 -r e38c3f59e30c njs/njs_shell.c
--- a/njs/njs_shell.c	Wed May 30 17:17:13 2018 +0300
+++ b/njs/njs_shell.c	Thu May 31 16:34:36 2018 +0300
@@ -247,7 +247,7 @@ njs_interactive_shell(njs_opts_t *opts, 
         return NXT_ERROR;
     }
 
-    printf("interactive njscript %s\n\n", NJS_VERSION);
+    printf("interactive njs %s\n\n", NJS_VERSION);
 
     printf("v.<Tab> -> the properties and prototype methods of v.\n");
     printf("type console.help() for more information\n\n");
diff -r 143a7f9db504 -r e38c3f59e30c njs/test/njs_expect_test.exp
--- a/njs/test/njs_expect_test.exp	Wed May 30 17:17:13 2018 +0300
+++ b/njs/test/njs_expect_test.exp	Thu May 31 16:34:36 2018 +0300
@@ -5,7 +5,7 @@
 
 proc njs_test {body} {
     spawn  -nottycopy njs
-    expect -re "interactive njscript \\d+\.\\d+\.\\d+\r\n\r"
+    expect -re "interactive njs \\d+\.\\d+\.\\d+\r\n\r"
     expect "v.<Tab> -> the properties and prototype methods of v.\r
 type console.help() for more information\r
 \r
diff -r 143a7f9db504 -r e38c3f59e30c njs/test/njs_unit_test.c
--- a/njs/test/njs_unit_test.c	Wed May 30 17:17:13 2018 +0300
+++ b/njs/test/njs_unit_test.c	Thu May 31 16:34:36 2018 +0300
@@ -287,8 +287,8 @@ static njs_unit_test_t  njs_test[] =
     { nxt_string("0xffff.toString(16)"),
       nxt_string("ffff") },
 
-    { nxt_string("1845449130881..toString(36)"),
-      nxt_string("njscript") },
+    { nxt_string("30520..toString(36)"),
+      nxt_string("njs") },
 
     { nxt_string("Infinity.toString()"),
       nxt_string("Infinity") },


More information about the nginx-devel mailing list