elm-lang / elm-reactor

Interactive development tool that makes it easy to develop and debug Elm programs.
BSD 3-Clause "New" or "Revised" License
428 stars 63 forks source link

Maximum Call Stack Size Exceeded with regex "a*" #230

Open bengolds opened 7 years ago

bengolds commented 7 years ago

This is a strange one; I haven't been able to make a minimum repro case for this, so I'll just post where I found it.

In one of my programs, if I use a minimal regex expression (a*), elm-reactor crashes while loading my page with the error LatexTester.elm:1289 Uncaught RangeError: Maximum call stack size exceeded. If I use any other regex (ab*, a+, a), it loads just fine. As far as I can tell, my code isn't doing anything else with the pattern than just passing it into Regex.regex.

Additionally, it works just fine on elm-repl and elm-make. Not sure what's going on here!

[Elm 0.18 on Chrome OS]

process-bot commented 7 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.