class Opal::CliRunners::Gjs
Gjs is GNOME’s JavaScript runtime based on Mozilla SpiderMonkey
def self.call(data)
def self.call(data) exe = ENV['GJS_PATH'] || 'gjs' opts = Shellwords.shellwords(ENV['GJS_OPTS'] || '') SystemRunner.call(data) do |tempfile| [exe, *opts, tempfile.path, *data[:argv]] end rescue Errno::ENOENT raise MissingGjs, 'Please install Gjs to be able to run Opal scripts.' end