diff --git a/src/Makefile b/src/Makefile index a9f0512a..888fb14c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -44,6 +44,8 @@ COPT += -O3 -DNDEBUG endif JSFLAGS += -s ASYNCIFY +# This stack limit can be triggered by nesting in user Python code +JSFLAGS += -s ASYNCIFY_STACK_SIZE=65536 JSFLAGS += -s EXIT_RUNTIME JSFLAGS += -s MODULARIZE=1 JSFLAGS += -s EXPORT_NAME=createModule