aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/child_process.exports.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-06-01Bundle and minify `.exports.js` files. (#3036)Gravatar dave caruso 1-1747/+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-05-11fix child process tests (#2584)Gravatar Dylan Conway 1-12/+7
* always handle exit on next tick * emit spawn immediately
2023-03-08fix(node:child_process): fix missing primordial `StringPrototypeSlice` (#2352)Gravatar Derrick Farris 1-0/+1
2023-02-22fix(child_process): import from primordials (#2132)Gravatar Derrick Farris 1-9/+1
2023-02-22fix(child_process): match Node's promisified exec fn (#2128)Gravatar Derrick Farris 1-43/+72
2023-01-31Re-run prettier after changesGravatar Jarred Sumner 1-114/+33
2023-01-23fix child process node test hang (#1884)Gravatar Dylan Conway 1-1/+3
* fix test hang from skipped tests * add error target
2023-01-16send and disconnectGravatar Dylan Conway 1-0/+10
2022-12-06fix event emitter castGravatar Dylan Conway 1-8/+0
2022-12-06cleanup/fix(stdio,child_process): bug fixes, refactoring, etc. (#1574)Gravatar Derrick Farris 1-52/+7
* fix(stream): add back call to Error.captureStackTrace, remove stray garbage * cleanup(streams): remove unnecessary checks on Promise.then * fix(child_process): WrappedFileSink -> NativeWritable for ChildProcess stdio * cleanup(child_process): remove debug id * fix(child_process): fix process.nextTick not working in onExit, fail to flush stdio * refactor(streams): revert stream impls to functions from classes * fix(child_process): revert runOnNextTick to process.nextTick
2022-12-05fix for double free and undefined thisGravatar Dylan Conway 1-1/+3
2022-12-04Fix race condition in child_processGravatar Jarred Sumner 1-9/+17
2022-12-04Update child_processGravatar Jarred Sumner 1-13/+7
2022-12-02feat(process): add process.{stdin, stdout, stderr} support (#1495)Gravatar Derrick Farris 1-50/+106
* fix(stream): get Duplex working * feat(process): add stdin,stdout,stderr in a semi-broken state (pipes??) * test(NodeTestHelpers): fix test names * test(NodeTestHelpers): add test for createDoneDotAll done called w error * test(NodeTestHelpers): remove stray console.log * fix(stream): fix bug in Duplex, Readable * test(process.stdio): rename test * fix(process.stdio): change onData listener to onReadable * refactor(streams): add file-wide debug fn, destructure opts * fix(child_process): check isCallable on promise * fix: get stdio streams mostly working (mostly) * fix(child_process): wait until stream is drained before calling end? * fix(child_process): change to result?.then * debug(child_process,streams): add EE id tracking, add shim for stdio after handle is dead * test(child_process): fix double pipe test, temp fix for ChildProcess.kill() return val * fix(child_process): remove immediate emit of exit on kill * debug(streams): add more debug log * debug(streams): add more debug logs part 2 * feat(streams,fs): add NativeWritable, adapt fs.WriteStream and fs.ReadStream to native
2022-11-23possibly more reliable Bun.spawn (#1547)Gravatar Jarred Sumner 1-1/+4
* wip * wip * Fix bug with stdin * zig fmt * seems to work! * Update streams.test.js Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-14Bugfixes and perf improvements to child_processGravatar Jarred SUmner 1-1/+13
2022-11-13Make node streams faster (#1502)Gravatar Jarred Sumner 1-45/+77
* Make node streams faster * Fix for macOS, improve performance, handle ref and unref Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-12Redo how we poll pipes (#1496)Gravatar Jarred Sumner 1-12/+41
* Fix pipe * Handle unregistered * Fix failing test
2022-11-09fix(child_process): fix execFileSync options.input (#1479)Gravatar Derrick Farris 1-37/+30
* fix(child_process): fix execFileSync options.input * fix(child_process): debug err, check for Uint8Array too * fix(child_process): fix ArrayBufferIsView call * test(child_process): fix missing toString() call on test result * refactor(child_process): change options.input to input to getter calls
2022-11-09Add bun-types, add typechecking, add `child_process` types (#1475)Gravatar Colin McDonnell 1-17/+17
* 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-08Fix child_process tests (#1471)Gravatar Derrick Farris 1-4/+15
* test(child_process): fix broken tests, add our-assert pkg for testing * test(child_process): replace console.log with debug() * test(child_process): rename our-assert -> node-test-helpers, use Bun.peek for subproc.exited
2022-11-06feat(child_process): add node:child_process polyfill (#1424)Gravatar Derrick Farris 1-1/+1710
* feat(child_process): beginning of child_process, add ChildProcess and spawn base case * fix(child_process): remove invalid single arg array syntax (thanks Copilot) * refactor(child_process): unhack Readable.on, move stuff into node:stream * feat(child_process): add more params for spawn, refactor, add fromWeb() to Readable * feat(child_process): finish rest of exports (minus fork), refactor, add tests * cleanup(streams): remove a bunch of unnecessary stuff * cleanup(child_process): remove dead refs * fix(child_process): fix stdio * fix(child_process): change stdio to bunStdio * test(child_process): uncomment timeout test * test(child_process): fix hanging tests * test(child_process): remove stray console.log * test(child_process): fix cwd test for linux * refactor(child_process): divide paths for encoded vs raw execFile stdio * fix(child_process): fix logic for execFile slow path
2022-10-27Allow overriding node polyfills via `BUN_OVERRIDE_MODULE_PATH`Gravatar Jarred Sumner 1-0/+3
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-0/+0