Sha256: a4e329b97f76d95668569a1db60ebc4cb8595571c710d6b9e9b57e39d8c0f95d

Contents?: true

Size: 719 Bytes

Versions: 6

Compression:

Stored size: 719 Bytes

Contents

# backtick_javascript: true

module Deno
  VERSION = `Deno.version.deno`
end

`Opal.exit = Deno.exit`

ARGV = `Deno.args.slice(2)`
ARGV.shift if ARGV.first == '--'

STDOUT.write_proc = ->(string) { `Deno.stdout.write(new TextEncoder().encode(string))` }
STDERR.write_proc = ->(string) { `Deno.stderr.write(new TextEncoder().encode(string))` }

STDIN.read_proc = %x{function(_count) {
  // Ignore count, return as much as we can get
  var buf = new Uint8Array(65536), count;
  try {
    count = Deno.stdin.readSync(buf);
  }
  catch (e) { // Windows systems may raise EOF
    return nil;
  }
  if (count == 0) return nil;
  return buf.toString('utf8', 0, count);
}}

STDIN.tty = true
STDOUT.tty = true
STDERR.tty = true

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opal-1.8.3.rc1 stdlib/deno/base.rb
opal-1.8.2 stdlib/deno/base.rb
opal-1.8.1 stdlib/deno/base.rb
opal-1.8.0 stdlib/deno/base.rb
opal-1.8.0.beta1 stdlib/deno/base.rb
opal-1.8.0.alpha1 stdlib/deno/base.rb