diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-05-19 15:05:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-19 15:05:52 (GMT) |
commit | 7afccd34a659af6676c17abbd431e58093d25746 (patch) | |
tree | 24bd5c780dc660b2882019f28260d9bd1d8e8daf /Parser | |
parent | 611d43c2a49e7c2c35fc03b0f58570b07c41b0eb (diff) | |
download | cpython-7afccd34a659af6676c17abbd431e58093d25746.zip cpython-7afccd34a659af6676c17abbd431e58093d25746.tar.gz cpython-7afccd34a659af6676c17abbd431e58093d25746.tar.bz2 |
gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803)
(cherry picked from commit 137fd3d88aa46669f5717734e823f4c594ab2843)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/parser.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Parser/parser.c b/Parser/parser.c index adc8d50..08bf6d2 100644 --- a/Parser/parser.c +++ b/Parser/parser.c @@ -7,7 +7,11 @@ # define D(x) #endif -# define MAXSTACK 6000 +#ifdef __wasi__ +# define MAXSTACK 4000 +#else +# define MAXSTACK 6000 +#endif static const int n_keyword_lists = 9; static KeywordToken *reserved_keywords[] = { (KeywordToken[]) {{NULL, -1}}, |