Sha256: ff570a5fc2bd322d1004a83b44d447452c5cc3ce956219afbff93f4bc27039f9

Contents?: true

Size: 526 Bytes

Versions: 20

Compression:

Stored size: 526 Bytes

Contents

(function(program, execJS) { execJS(program) })(function(module, exports, console) {
  #{source}
}, function(program) {
  var output, print = function(string) {
    process.stdout.write('' + string);
  };
  try {
    result = program();
    if (typeof result == 'undefined' && result !== null) {
      print('["ok"]');
    } else {
      try {
        print(JSON.stringify(['ok', result]));
      } catch (err) {
        print('["err"]');
      }
    }
  } catch (err) {
    print(JSON.stringify(['err', '' + err]));
  }
});

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
embork-0.0.13 lib/embork/sprockets/support/node_runner.js
embork-0.0.12 lib/embork/sprockets/support/node_runner.js
embork-0.0.11 lib/embork/sprockets/support/node_runner.js
embork-0.0.10 lib/embork/sprockets/support/node_runner.js
embork-0.0.9 lib/embork/sprockets/support/node_runner.js
embork-0.0.8 lib/embork/sprockets/support/node_runner.js
embork-0.0.7 lib/embork/sprockets/support/node_runner.js
embork-0.0.6 lib/embork/sprockets/support/node_runner.js
embork-0.0.5 lib/embork/sprockets/support/node_runner.js
embork-0.0.4 lib/embork/sprockets/support/node_runner.js
es6_module_transpiler-rails-0.4.0 lib/es6_module_transpiler/support/es6_node_runner.js
ruby_es6_module_transpiler-0.0.5 lib/support/es6-node-runner.js
ruby_es6_module_transpiler-0.0.4 lib/support/es6-node-runner.js
ruby_es6_module_transpiler-0.0.3 lib/support/es6-node-runner.js
es6_module_transpiler-rails-0.3.0 lib/es6_module_transpiler/support/es6_node_runner.js
es6_module_transpiler-rails-0.2.0 lib/es6_module_transpiler/support/es6_node_runner.js
es6_module_transpiler-rails-0.1.0 lib/es6_module_transpiler/support/es6_node_runner.js
es6_module_transpiler-rails-0.0.3 lib/es6_module_transpiler/support/es6_node_runner.js
es6_module_transpiler-rails-0.0.2 lib/es6_module_transpiler/support/es6_node_runner.js
es6_module_transpiler-rails-0.0.1 lib/es6_module_transpiler/support/es6_node_runner.js