File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ COPT += -O3 -DNDEBUG
4444endif
4545
4646JSFLAGS += -s ASYNCIFY
47+ # We can hit lower values due to user stack use. See stack_size.py example.
48+ JSFLAGS += -s ASYNCIFY_STACK_SIZE=262144
4749JSFLAGS += -s EXIT_RUNTIME
4850JSFLAGS += -s MODULARIZE=1
4951JSFLAGS += -s EXPORT_NAME=createModule
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ <h1>MicroPython-micro:bit simulator example embedding</h1>
100100 </ option >
101101 < option value ="sound_effects_user "> Sound effects (user)</ option >
102102 < option value ="speech "> Speech</ option >
103+ < option value ="stack_size "> Stack size</ option >
103104 < option value ="volume "> Volume</ option >
104105 </ select >
105106 < textarea
Original file line number Diff line number Diff line change 1+ def g ():
2+ global depth
3+ depth += 1
4+ g ()
5+ depth = 0
6+ try :
7+ g ()
8+ except RuntimeError :
9+ pass
10+ print ('maximum recursion depth g():' , depth )
You can’t perform that action at this time.
0 commit comments