From 3f56a85e1e92fff53c1c5f8380c97602863f8a9a Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Tue, 7 Dec 2021 19:42:27 +0000 Subject: [PATCH] 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. --- src/test/njs_unit_test.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/test/njs_unit_test.c b/src/test/njs_unit_test.c index 6683ccc7..8ad6ff0b 100644 --- a/src/test/njs_unit_test.c +++ b/src/test/njs_unit_test.c @@ -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") }, -- 2.47.3