class Opal::CliRunners::Quickjs

github.com/bellard/quickjs<br>QuickJS is Fabrice Bellard’s minimalistic JavaScript engine

def self.call(data)

def self.call(data)
  exe = ENV['QJS_PATH'] || 'qjs'
  opts = Shellwords.shellwords(ENV['QJS_OPTS'] || '')
  SystemRunner.call(data) do |tempfile|
    [exe, '--std', *opts, tempfile.path, *data[:argv]]
  end
rescue Errno::ENOENT
  raise MissingQuickjs, 'Please install QuickJS to be able to run Opal scripts.'
end