]> git.kaiwu.me - njs.git/commitdiff
Tests: improved unit tests after efdc5f18195e (0.6.2).
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 7 Dec 2021 19:42:27 +0000 (19:42 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Tue, 7 Dec 2021 19:42:27 +0000 (19:42 +0000)
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

index 6683ccc7e99de7ca7c5213af21e3289a6b3ae4de..8ad6ff0b4b68a7f6aade3c63919b8830a1e7dc50 100644 (file)
@@ -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") },