Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
jajbshjahavahh
GitHub Repository: jajbshjahavahh/Gojo-Satoru
Path: blob/master/node_modules/@protobufjs/codegen/tests/index.js
2593 views
1
var codegen = require("..");
2
3
// new require("benchmark").Suite().add("add", function() {
4
5
var add = codegen(["a", "b"], "add")
6
("// awesome comment")
7
("return a + b - c + %d", 1)
8
({ c: 1 });
9
10
if (add(1, 2) !== 3)
11
throw Error("failed");
12
13
// }).on("cycle", function(event) { process.stdout.write(String(event.target) + "\n"); }).run();
14
15