Welcome! Log In Create A New Profile

Advanced

[njs] Moving test added in ab5d059e4ef8 to a conditional list.

Dmitry Volyntsev
May 30, 2019 10:16AM
details: https://hg.nginx.org/njs/rev/b6ecd0086ed3
branches:
changeset: 994:b6ecd0086ed3
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Thu May 30 16:16:22 2019 +0300
description:
Moving test added in ab5d059e4ef8 to a conditional list.

As it can fail on older libpcre versions (pcre-7.8 for example).

diffstat:

njs/test/njs_unit_test.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r ab5d059e4ef8 -r b6ecd0086ed3 njs/test/njs_unit_test.c
--- a/njs/test/njs_unit_test.c Thu May 30 14:17:59 2019 +0300
+++ b/njs/test/njs_unit_test.c Thu May 30 16:16:22 2019 +0300
@@ -7240,9 +7240,6 @@ static njs_unit_test_t njs_test[] =
{ nxt_string("/^[A-Za-z0-9+/]{4}$/.test('////')"),
nxt_string("true") },

- { nxt_string("/[\\uFDE0-\\uFFFD]/g; export default 1"),
- nxt_string("SyntaxError: Illegal export statement in 1") },
-
{ nxt_string("'[]!\"#$%&\\'()*+,.\\/:;<=>?@\\^_`{|}-'.split('')"
".every(ch=>/[\\]\\[!\"#$%&'()*+,.\\/:;<=>?@\\^_`{|}-]/.test(ch))"),
nxt_string("true") },
@@ -12785,6 +12782,9 @@ static njs_unit_test_t njs_regexp_test[

{ nxt_string("RegExp('[\\\\u0430-\\\\u044f]+').exec('тест')[0]"),
nxt_string("тест") },
+
+ { nxt_string("/[\\uFDE0-\\uFFFD]/g; export default 1"),
+ nxt_string("SyntaxError: Illegal export statement in 1") },
};


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

[njs] Moving test added in ab5d059e4ef8 to a conditional list.

Dmitry Volyntsev 322 May 30, 2019 10:16AM



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

Online Users

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