blob: f3a3db11956ebfe70d75c1d1144d6296acb64b42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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();
|