* Package scope for unit tests.
*/
static final class InvalidThreadStarter implements ThreadStarter {
@Override
public int startThread(final Object testRunner) throws InvalidContextException {
throw new InvalidContextException("You should not start worker threads until the main thread has "
+ "initialised the script engine, or after all other threads have "
+ "shut down. Typically, you should only call startWorkerThread() "
+ "from another worker thread.");
}