OK, I’m at the end of my tether with this. There are a few similar questions but they all refer to therubyracer 0.10, and they mostly conclude that the problem can be fixed by u
This issue no longer exists in the latest version of therubyracer (0.12.3).
therubyracer
bundle update therubyracer