class Opal::CliRunners::Nashorn
Public Class Methods
call(data)
click to toggle source
# File lib/opal/cli_runners/nashorn.rb, line 9 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