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
Same issue with OSX 10.9.3, ruby 2.1.3 and every version of therubyracer.
Now i'm letting execjs (uglifier gem dependencie) take care of it.
ExecJS lets you run JavaScript code from Ruby. It automatically picks the best runtime available to evaluate your JavaScript program, then returns the result to you as a Ruby object.
"Apple JavaScriptCore" comes as default for JS runtime on OSX. Just installing execjs will solve the problem.
Install node.js. Execjs gem will automatically choose node.js as js runtime.
sudo apt-get install nodejs
More information on github:
https://github.com/sstephenson/execjs