[njs] Enabled successful tests which were skipped previously.

Dmitry Volyntsev xeioex at nginx.com
Tue Oct 11 02:35:16 UTC 2022


details:   https://hg.nginx.org/njs/rev/0b87c0309b37
branches:  
changeset: 1977:0b87c0309b37
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Mon Oct 10 19:01:56 2022 -0700
description:
Enabled successful tests which were skipped previously.

diffstat:

 src/test/njs_unit_test.c |  14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)

diffs (50 lines):

diff -r e4297a78844e -r 0b87c0309b37 src/test/njs_unit_test.c
--- a/src/test/njs_unit_test.c	Mon Oct 10 18:45:09 2022 -0700
+++ b/src/test/njs_unit_test.c	Mon Oct 10 19:01:56 2022 -0700
@@ -203,10 +203,8 @@ static njs_unit_test_t  njs_test[] =
     { njs_str("var func = function f() {let f = null; return f;}; func()"),
       njs_str("null") },
 
-#if 0 /* TODO */
     { njs_str("var a; Object.getOwnPropertyDescriptor(this, 'a').value"),
       njs_str("undefined") },
-#endif
 
     { njs_str("f() = 1"),
       njs_str("ReferenceError: Invalid left-hand side in assignment in 1") },
@@ -1928,10 +1926,8 @@ static njs_unit_test_t  njs_test[] =
     { njs_str("var Infinity"),
       njs_str("undefined") },
 
-#if 0 /* ES5FIX */
     { njs_str("Infinity = 1"),
-      njs_str("TypeError: Cannot assign to read-only property "Infinity" of object") },
-#endif
+      njs_str("TypeError: Cannot assign to read-only property \"Infinity\" of object") },
 
     /**/
 
@@ -1962,10 +1958,8 @@ static njs_unit_test_t  njs_test[] =
     { njs_str("var NaN"),
       njs_str("undefined") },
 
-#if 0 /* ES5FIX */
     { njs_str("NaN = 1"),
-      njs_str("TypeError: Cannot assign to read-only property "NaN" of object") },
-#endif
+      njs_str("TypeError: Cannot assign to read-only property \"NaN\" of object") },
 
     /**/
 
@@ -3567,10 +3561,8 @@ static njs_unit_test_t  njs_test[] =
     { njs_str("null = 1"),
       njs_str("ReferenceError: Invalid left-hand side in assignment in 1") },
 
-#if 0 /* ES5FIX */
     { njs_str("undefined = 1"),
-      njs_str("TypeError: Cannot assign to read-only property "undefined" of object") },
-#endif
+      njs_str("TypeError: Cannot assign to read-only property \"undefined\" of object") },
 
     { njs_str("null++"),
       njs_str("ReferenceError: Invalid left-hand side in postfix operation in 1") },



More information about the nginx-devel mailing list