Welcome! Log In Create A New Profile

Advanced

[njs] Enabled successful tests which were skipped previously.

Dmitry Volyntsev
October 10, 2022 10:36PM
details: https://hg.nginx.org/njs/rev/0b87c0309b37
branches:
changeset: 1977:0b87c0309b37
user: Dmitry Volyntsev <xeioex@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") },
_______________________________________________
nginx-devel mailing list -- nginx-devel@nginx.org
To unsubscribe send an email to nginx-devel-leave@nginx.org
Subject Author Views Posted

[njs] Enabled successful tests which were skipped previously.

Dmitry Volyntsev 298 October 10, 2022 10:36PM



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

Online Users

Guests: 301
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