details: https://hg.nginx.org/njs/rev/1fb13b1d66a1 branches: changeset: 1760:1fb13b1d66a1 user: Dmitry Volyntsev <xei...@nginx.com> date: Tue Dec 07 19:42:27 2021 +0000 description: Tests: improved unit tests after efdc5f18195e (0.6.2).
In efdc5f18195e the recursion was removed from generator, therefore tests that are not limited by system stack should always pass. diffstat: src/test/njs_unit_test.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diffs (19 lines): diff -r 44f6a4ad4464 -r 1fb13b1d66a1 src/test/njs_unit_test.c --- a/src/test/njs_unit_test.c Tue Dec 07 13:15:19 2021 +0000 +++ b/src/test/njs_unit_test.c Tue Dec 07 19:42:27 2021 +0000 @@ -13048,7 +13048,6 @@ static njs_unit_test_t njs_test[] = { njs_str("(function(){}).constructor === Function"), njs_str("true") }, -#if NJS_HAVE_LARGE_STACK { njs_str("new Function('('.repeat(2**13));"), njs_str("SyntaxError: Unexpected token \"}\" in runtime:1") }, @@ -13091,7 +13090,6 @@ static njs_unit_test_t njs_test[] = { njs_str("var a = (new Function('return [' + '1,'.repeat(2**13) + ']'))();" "a.push(5); [a[2**13 - 1], a[2**13]]"), njs_str("1,5") }, -#endif { njs_str("var f = new Function('return 1;'); f();"), njs_str("1") }, _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel