aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api/ffi.classes.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/api/ffi.classes.ts')
-rw-r--r--src/bun.js/api/ffi.classes.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/bun.js/api/ffi.classes.ts b/src/bun.js/api/ffi.classes.ts
new file mode 100644
index 000000000..0a146b22e
--- /dev/null
+++ b/src/bun.js/api/ffi.classes.ts
@@ -0,0 +1,23 @@
+import { define } from "../scripts/class-definitions";
+
+export default [
+ define({
+ name: "FFI",
+ construct: true,
+ noConstructor: true,
+ finalize: true,
+ klass: {},
+ proto: {
+ close: {
+ fn: "close",
+ length: 0,
+ },
+
+ symbols: {
+ cache: "symbolsValue",
+ getter: "getSymbols",
+ },
+ },
+ values: ["symbolsValue"],
+ }),
+];