Skip to content

Commit

Permalink
ran "just format"
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdickinson committed Oct 4, 2024
1 parent 48b2694 commit 4bf11b0
Show file tree
Hide file tree
Showing 16 changed files with 1,136 additions and 1,766 deletions.
12 changes: 6 additions & 6 deletions examples/deno.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#!/usr/bin/env deno run -A
import createPlugin from "../src/mod.ts";
import createPlugin from '../src/mod.ts';

const filename = Deno.args[0] || "wasm/hello.wasm";
const funcname = Deno.args[1] || "run_test";
const input = Deno.args[2] || "this is a test";
const filename = Deno.args[0] || 'wasm/hello.wasm';
const funcname = Deno.args[1] || 'run_test';
const input = Deno.args[2] || 'this is a test';

const plugin = await createPlugin(filename, {
useWasi: true,
logLevel: 'trace',
logger: console,
config: {
thing: "testing",
thing: 'testing',
},
});

console.log("calling", { filename, funcname, input });
console.log('calling', { filename, funcname, input });
const res = await plugin.call(funcname, new TextEncoder().encode(input));
// const s = new TextDecoder().decode(res.buffer);
// console.log(s);
Expand Down
Loading

0 comments on commit 4bf11b0

Please sign in to comment.