Sha256: 0b118595b446748709006cb0bd23e23dc5e9a477711f5df06c77b99d29e159af

Contents?: true

Size: 703 Bytes

Versions: 1

Compression:

Stored size: 703 Bytes

Contents

%x(
  var value;
  if (typeof module !== 'undefined' && module.exports) {
    value = 'node';
  }
  else if (typeof XMLHttpRequest !== 'undefined') {
  // or we can check for document
  //else if (typeof document !== 'undefined' && document.nodeType) {
    value = 'browser';
  }
  else if (typeof Java !== 'undefined' && Java.type) {
    value = 'java-nashorn';
  }
  else if (typeof java !== 'undefined') {
    value = 'java-rhino';
  }
  else {
    // standalone is likely SpiderMonkey
    value = 'standalone';
  }
)
JAVASCRIPT_PLATFORM = %x(value)
require 'asciidoctor/opal_ext/comparable'
require 'asciidoctor/opal_ext/dir'
require 'asciidoctor/opal_ext/error'
require 'asciidoctor/opal_ext/file'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asciidoctor-1.5.2 lib/asciidoctor/opal_ext.rb