Sha256: 03f0db88f597b517e0ae8137f4a301d242696b96b8d68f81b97d6ed84769a9b0

Contents?: true

Size: 356 Bytes

Versions: 1

Compression:

Stored size: 356 Bytes

Contents

var codegen = require("..");

// new require("benchmark").Suite().add("add", function() {

var add = codegen(["a", "b"], "add")
  ("// awesome comment")
  ("return a + b - c + %d", 1)
  ({ c: 1 });

if (add(1, 2) !== 3)
  throw Error("failed");

// }).on("cycle", function(event) { process.stdout.write(String(event.target) + "\n"); }).run();

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
waves_lib-0.1.0 js/node_modules/@protobufjs/codegen/tests/index.js