class Opal::CliRunners::Nashorn
def self.call(data)
def self.call(data) # Allow to change path if using GraalVM, see: # https://github.com/graalvm/graaljs/blob/master/docs/user/NashornMigrationGuide.md#launcher-name-js exe = ENV['NASHORN_PATH'] || 'jjs' SystemRunner.call(data) do |tempfile| [exe, tempfile.path, *data[:argv]] end rescue Errno::ENOENT raise MissingNashorn, 'Please install JDK or GraalVM to be able to run Opal scripts.' end