aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/ffi.exports.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-06-01Bundle and minify `.exports.js` files. (#3036)Gravatar dave caruso 1-391/+0
* move all exports.js into src/js * finalize the sort of this * and it works * add test.ts to gitignore * okay * convert some to ts just to show * finish up * fixup makefile * minify syntax in dev * finish rebase * dont minify all modules * merge * finish rebase merge * flaky test that hangs
2023-01-31Re-run prettier after changesGravatar Jarred Sumner 1-71/+20
2022-11-09Add bun-types, add typechecking, add `child_process` types (#1475)Gravatar Colin McDonnell 1-9/+9
* Add bun-types to packages * Improve typing * Fix types in tests * Fix dts tests * Run formatter * Fix all type errors * Add strict mode, fix type errors * Add ffi changes * Move workflows to root * Add workflows * Remove labeler * Add child_process types * Fix synthetic defaults issue * Remove docs * Move scripts * Run prettier * Include examples in typechecking * captureStackTrace types * moved captureStackTrace types to globals * Address reviews Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2022-11-02Update ffi.exports.jsGravatar Jarred Sumner 1-2/+2
2022-11-02Add way to know if JSCallback is threadsafeGravatar Jarred Sumner 1-3/+8
2022-11-02[bun:ffi] Add `threadsafe` option to callbacksGravatar Jarred Sumner 1-1/+2
2022-11-02Flip the callback orderGravatar Jarred Sumner 1-1/+1
2022-11-02[bun:ffi] Implement `JSCallback` so C can call into JSGravatar Jarred Sumner 1-8/+54
2022-10-27Add missing `break`Gravatar Jarred Sumner 1-0/+1
2022-09-08[bun:ffi] Implement `read.{u8,i8,i16,i32,u16,u32,ptr,intptr}`Gravatar Jarred Sumner 1-0/+2
`read` in `bun:ffi` lets you read data from a pointer without creating a new DataView/ArrayBufferView ``` import {read} from 'bun:ffi'; expect(read.i8(ptr_, i)).toBe(view.getInt8(i, true)); expect(read.i16(ptr_, i)).toBe(view.getInt16(i, true)); expect(read.i32(ptr_, i)).toBe(view.getInt32(i, true)); expect(read.u8(ptr_, i)).toBe(view.getUint8(i, true)); expect(read.u16(ptr_, i)).toBe(view.getUint16(i, true)); expect(read.u32(ptr_, i)).toBe(view.getUint32(i, true)); } ```
2022-08-28support pass null as NULL ptr (#1160)Gravatar Zilin Zhu 1-1/+1
2022-08-28[bun:ffi] Fix int16 / uin16 maxGravatar Jarred Sumner 1-3/+6
2022-08-27Fix ffi uint64_t parameter (#1158)Gravatar Zilin Zhu 1-7/+5
2022-08-17[bun:ffi] Improve `ptr()` performance and implement code generation for DOMJITGravatar Jarred Sumner 1-8/+10
2022-08-09[bun:ffi] ~30% perf improvement for wrapped functionsGravatar Jarred Sumner 1-2/+59
2022-07-17Fixes https://github.com/oven-sh/bun/issues/769Gravatar Jarred Sumner 1-1/+8
Not tested
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-0/+320