aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-12-06Fix glibc symbol version issues preventing `bun install` from being used in ↵Gravatar Jarred Sumner 5-6/+151
older glibc versions (#1580) * Prevent integer overflow in connectError * Add missing deepEquals() type to Bun * fix missing glibc symbols * Fix missing symbol issues * Try this * Update glibc-versions-hack.cpp * Update glibc-versions-hack.cpp * Update glibc-versions-hack.cpp Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-06cleanup/fix(stdio,child_process): bug fixes, refactoring, etc. (#1574)Gravatar Derrick Farris 2-906/+218
* 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-059 charactersGravatar Dylan Conway 1-1/+1
2022-12-05fix for double free and undefined thisGravatar Dylan Conway 2-2/+3
2022-12-05linx build issueGravatar Jarred Sumner 1-80/+80
2022-12-05Missing commitGravatar Jarred Sumner 1-0/+2
2022-12-05Fix regressionGravatar Jarred Sumner 1-6/+11
2022-12-05Fix crash when passing unexpected type to .writer()Gravatar Jarred Sumner 1-1/+6
2022-12-05Introduce `Bun.indexOfLine`Gravatar Jarred Sumner 1-0/+61
2022-12-05Make `console` an `AsyncIterable`Gravatar Jarred Sumner 14-116/+531
2022-12-05Update Process.hGravatar Jarred Sumner 1-0/+7
2022-12-05`process.stdin` exists but doesn't totally work yetGravatar Jarred Sumner 3-31/+150
2022-12-05[Bun.stdin] Fix handling ttyGravatar Jarred Sumner 1-4/+17
2022-12-05Fix "is not event emitter" errrorGravatar Jarred Sumner 1-4/+5
2022-12-05"Fix" monkey-patching EventEmitter prototypeGravatar Jarred Sumner 4-35/+73
2022-12-04[bun:test] Fix crash when `test("foo")` is called without passing a functionGravatar Jarred Sumner 1-6/+13
2022-12-04Clean up more casesGravatar Jarred Sumner 1-6/+6
2022-12-04Fix race condition in child_processGravatar Jarred Sumner 1-9/+17
2022-12-04Update ZigGeneratedClasses.cppGravatar Jarred Sumner 1-0/+16
2022-12-04Handle exception when creating stdout/stderrGravatar Jarred Sumner 1-3/+10
2022-12-04Update ffi.zigGravatar Jarred Sumner 1-6/+6
2022-12-04Update child_processGravatar Jarred Sumner 3-17/+15
2022-12-04[breaking] `onExit` callback in Bun.spawn sets the first property to be the ↵Gravatar Jarred Sumner 1-3/+9
Subprocess object Sometimes Bun.spawn calls the onExit callback before the Bun.spawn() callback is called. Instead of delaying a tick, we set the `Subprocess` to be the first argument to the `onExit` callback now.
2022-12-04[Bun.spawn] Introduce `Subprocess.prototype.signalCode`Gravatar Jarred Sumner 2-39/+118
2022-12-04Fix console.log sometimes incorrectly reporting undefinedGravatar Jarred Sumner 1-4/+4
cc @Electroid
2022-12-04[internal] Make string comparisons fasterGravatar Jarred Sumner 2-3/+4
2022-12-04Mildly faster startup timeGravatar Jarred Sumner 1-8/+8
2022-12-04:scissors:Gravatar Jarred Sumner 3-3/+3
2022-12-04Add some basic tests for process.stdoutGravatar Jarred Sumner 6-58/+23
2022-12-04Re-add missing globalGravatar Jarred Sumner 1-0/+1
2022-12-04content-range is inclusiveGravatar Jarred Sumner 1-1/+1
2022-12-04[Bun.serve] Implement `Content-Range` support with `Bun.file()`Gravatar Jarred Sumner 3-15/+111
2022-12-04[may revert later] Coerce Infinity to max int 64, -Infinity & NaN to min int64Gravatar Jarred Sumner 1-2/+22
2022-12-03[fetch] Fix bug where .arrayBuffer() on an empty Response body returned a ↵Gravatar Jarred Sumner 1-1/+1
`Uint8Array` instead of an `ArrayBuffer`
2022-12-03Don't invalidate previous file descriptro to avoid tripping assertionGravatar Jarred Sumner 1-5/+0
2022-12-03`process.stdout` and `process.stderr`Gravatar Jarred Sumner 14-563/+1536
2022-12-03make sure to not use incomplete characters (#1575)Gravatar Dylan Conway 1-1/+4
2022-12-02Run promise before callbackGravatar Jarred Sumner 1-13/+13
2022-12-02Add `AbortSignal.timeout`Gravatar Jarred Sumner 6-13/+48
2022-12-02matchers for less than and greater than (#1573)Gravatar Dylan Conway 5-6/+317
* toBeGreaterThan with tests * toBeGreaterThanOrEqual and tests * toBeLessThan and toBeLessThanOrEqual with tests * expect types * switch expressions
2022-12-02Propagate reason in AbortSignal and reuse in ReadableStream.pipeToGravatar Jarred Sumner 9-37/+38
Similar to https://github.com/WebKit/WebKit/pull/7013
2022-12-02Update TransformStream options getters to check for undefinedGravatar Jarred Sumner 1-4/+8
This is essentially copied from https://github.com/WebKit/WebKit/pull/7021
2022-12-02Add some code I forgot to commitGravatar Jarred Sumner 1-0/+4
2022-12-02Make cloning headers object fasterGravatar Jarred Sumner 3-38/+42
2022-12-02Add a userland way to hide stack framesGravatar Jarred Sumner 1-2/+6
2022-12-02Make constructing headers from an existing headears fasterGravatar Jarred Sumner 1-0/+1
2022-12-02Throw if passing a header not named "set-cookie" to `getAll`Gravatar Jarred Sumner 1-1/+1
2022-12-02Remove `getSetCookie`Gravatar Jarred Sumner 1-1/+1
2022-12-02[node:event] Add `captureRejectionSymbol`Gravatar Jarred Sumner 1-0/+4
2022-12-02feat(process): add process.{stdin, stdout, stderr} support (#1495)Gravatar Derrick Farris 4-304/+1713
* 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