this is an example repo to reproduce issue for example, take a look at arithmetics-backtrace-generated.js how to run yarn http-server $ yarn install $ npm start $ http-server . open http://localhost:8080 resources https://gist.github.com/subfuzion/808f91bfdfb88c7d5ed7 https://github.com/okaxaki/pegjs-backtrace