josh/ruby-coffee-script — pull request #20 by statianzo (2013-06-21 19:32:35+00:00)
Title: One Context Per Thread

`CoffeeScript.compile` currently reuses the same context. Invoking it across threads, such as in JRuby with Rhino, it's possible to get errors like

> Java::JavaLang::IllegalStateException - can not use Context instance already associated with some thread

This change ensures that each thread uses its own context.