motoko
motoko copied to clipboard
bugfix: repro for #4496
Add repro for #4496 (stackoverflow parsing v large array literal) and explore workaround using v large blob instead.
This seems to be hard to fix since the overflow occurs in menhir generated code. I tried to rewrite the array literal parser to use a higher-order, tail-recursive action for the array literal list elements, but that didn't actually help.