From: Dmitry Volyntsev Date: Thu, 30 May 2019 13:16:22 +0000 (+0300) Subject: Moving test added in ab5d059e4ef8 to a conditional list. X-Git-Tag: 0.3.3~22 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=c96060a0877f74eb5cab53ea2795a5833c0b54d2;p=njs.git Moving test added in ab5d059e4ef8 to a conditional list. As it can fail on older libpcre versions (pcre-7.8 for example). --- diff --git a/njs/test/njs_unit_test.c b/njs/test/njs_unit_test.c index bbd8ce6b..e0ecd448 100644 --- a/njs/test/njs_unit_test.c +++ b/njs/test/njs_unit_test.c @@ -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") }, };