Sha256: dc5796c26fb2c116d79c41faa1e26471df64c9cb3af67e4dfcfb31083a2b23ec

Contents?: true

Size: 307 Bytes

Versions: 4

Compression:

Stored size: 307 Bytes

Contents

require 'opal-platform'

case OPAL_PLATFORM
when 'nashorn'
  require 'nashorn'
when 'gjs'
  require 'gjs'
when 'quickjs'
  require 'quickjs'
when 'nodejs'
  require 'nodejs/kernel'
  require 'nodejs/io'
when 'headless-chrome'
  require 'headless_chrome'
when 'opal-miniracer'
  require 'opal/miniracer'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opal-1.3.2 stdlib/opal/platform.rb
opal-1.3.1 stdlib/opal/platform.rb
opal-1.3.0 stdlib/opal/platform.rb
opal-1.3.0.rc1 stdlib/opal/platform.rb