mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
16 lines
220 B
TypeScript
16 lines
220 B
TypeScript
import { cc } from "bun:ffi";
|
|
import assert from "node:assert";
|
|
|
|
assert.ok(process.send);
|
|
|
|
cc({
|
|
source: "./example.c",
|
|
symbols: {
|
|
foo: { args: [], returns: "void" },
|
|
},
|
|
});
|
|
|
|
process.send("hej");
|
|
|
|
while (true);
|