Commit Graph

5763 Commits

Author SHA1 Message Date
Jarred Sumner
09277c852c fixup 2024-02-12 02:18:02 -08:00
Jarred Sumner
3ecee39010 Use loop callbacks 2024-02-12 01:25:40 -08:00
Jarred Sumner
2196ffcc09 Fix test failure 2024-02-12 00:50:47 -08:00
Jarred Sumner
2651a62229 closee 2024-02-12 00:24:37 -08:00
Jarred Sumner
54903cbb05 Replace bunNativePtr with {File,Blob,Bytes}InternalStreamSource 2024-02-11 04:35:43 -08:00
Jarred Sumner
abc607d6d1 Introduce SinkDestructor so that we can tack on an extra finalizer 2024-02-11 04:33:56 -08:00
Jarred Sumner
6d96790fcf Support argv0 in node:child_process 2024-02-11 04:29:25 -08:00
Jarred Sumner
10c0eba2e3 Getting close! 2024-02-10 20:59:52 -08:00
Jarred Sumner
81eced7da6 Log how much time spent idling 2024-02-10 20:58:45 -08:00
Jarred Sumner
6d104c28cb Closer 2024-02-09 23:27:07 -08:00
Jarred Sumner
03cd14d662 wip 2024-02-09 17:49:40 -08:00
Jarred Sumner
4cde96605a Inching closer 2024-02-09 04:12:41 -08:00
Jarred Sumner
e0778944fe Fix some errors 2024-02-09 02:55:14 -08:00
Jarred Sumner
f4ebb33040 This method has no generic usages, it does not need to be generic
cc @paperdave
2024-02-09 02:54:45 -08:00
Jarred Sumner
2f8bff16d7 sys.open with a long name should return ENAMETOOLONG instead of ENOMEM 2024-02-09 02:48:14 -08:00
Jarred Sumner
3aa7be62de Always set F_DUPFD_CLOEXEC 2024-02-09 02:47:19 -08:00
Jarred Sumner
2391faa724 Merge branch 'main' into jarred/process-change 2024-02-09 01:17:21 -08:00
Jarred Sumner
cf8065545e More tests that pass 2024-02-09 01:10:11 -08:00
Jarred Sumner
eec56a4833 cleanup test 2024-02-09 00:00:05 -08:00
Jarred Sumner
a415ccb040 more 2024-02-08 23:21:42 -08:00
Jarred Sumner
39ecac0a99 more 2024-02-08 22:54:29 -08:00
Jarred Sumner
147d810516 More 2024-02-08 18:13:18 -08:00
Ciro Spaciari
8cd1db9cda [windows] fix crypto (#8797)
* fix password

* refactor

---------

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2024-02-08 18:00:22 -08:00
dave caruso
2d7df726fd fix: get bun build working on window (#8712)
* work on bundler

* a

* YAAAAYYAYAYAYYAYA

* get some more bundler tests working

* Update src/bundler/bundle_v2.zig

* rev

* ok

* i converted the cmakelists into LF

* personal review

* we didnt win

* okey they pass

* revert :(

* a

---------

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2024-02-08 17:56:26 -08:00
Ashcon Partovi
1ccf0c2e9c Fix some errors not showing up in GitHub annotations (#8799)
* Remove dead code now that `expect()` can be used outside of tests

* Fix some errors not being rendered to GitHub annotations

* [autofix.ci] apply automated fixes

* Update jest.zig

Try `execCallback`

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-08 17:52:58 -08:00
Ciro Spaciari
c2936b205d [windows] fix(fetch) file:///, keepalive and tests on Windows (#8784)
* fix file:/// on windows

* skip fifo test

* fix keepalive

* fixes

* avoid std.os.getcwd on POSIX
2024-02-08 17:11:06 -08:00
dave caruso
8680641c23 make process.test.js pass (#8798) 2024-02-08 16:54:09 -08:00
Ciro Spaciari
e77db8ebac [windows] fix which (#8791)
* fix which

* [autofix.ci] apply automated fixes

* refactor

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-08 15:44:56 -08:00
Georgijs
bfc6091faf correctly unblock all signals (#8792) 2024-02-08 12:09:33 -08:00
Jarred Sumner
7b0496970e more 2024-02-08 02:19:45 -08:00
Jarred Sumner
1c826d130c closer 2024-02-08 01:31:55 -08:00
Jarred Sumner
218bde31c1 closer 2024-02-08 00:49:16 -08:00
Jarred Sumner
2f8f77eeb7 Ignore panic in reload (#8778)
* Ignore panic in reload

* Use

* Update c-bindings.cpp

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2024-02-08 00:29:08 -08:00
Jarred Sumner
1f9127d0a2 Add setParent() 2024-02-07 23:53:22 -08:00
Jarred Sumner
1e61f4c5c4 Fix warning 2024-02-07 23:53:06 -08:00
Jarred Sumner
052b1504f2 Fix various build issues 2024-02-07 23:38:55 -08:00
Jarred Sumner
c486bb7caa Alphabetize + remove duplicate 2024-02-07 23:38:41 -08:00
Jarred Sumner
f6befe5f99 Use more const 2024-02-07 23:38:31 -08:00
Jarred Sumner
161a7a983b workaround build errors 2024-02-07 23:21:05 -08:00
Jarred Sumner
9e657a9587 Merge branch 'main' into jarred/process-change 2024-02-07 22:32:13 -08:00
Steven Roussey
7b6e0f7164 fix: Increase max depth of expect diffs (#8771)
Fix Issue #6519
2024-02-07 16:07:20 -08:00
Ciro Spaciari
5df59cb02b [windows] fix(fs.watch) (#8746)
* clean fixes

* [autofix.ci] apply automated fixes

* more tests passing

* EPERM instead of AccessDenied

* [autofix.ci] apply automated fixes

* fix test on windows

* cleanup

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-07 15:44:07 -08:00
Jarred Sumner
b61282e290 Fix async module mocking (#8769)
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2024-02-07 15:40:10 -08:00
Dylan Conway
dd3227c436 fix: crash in release builds (#8773)
* zig

* unreachable

* more comment
2024-02-07 15:38:14 -08:00
Georgijs
55aa35ee35 Fix watch attempting to reuse ports that are not yet released by the old process (#8764)
* windows watcher start new process only after previous terminated

* simplify env setup in spawnWatcherChild
2024-02-07 15:11:28 -08:00
Jarred Sumner
baef6ea6f4 wip 2024-02-07 13:48:09 -08:00
dave caruso
a99459ffdc fix: symlinked files as entry points do not show Bun.main (#8762) 2024-02-07 13:06:11 -08:00
Georgijs
2bd4fe578e Make HTTP shutdowns more robust, speed up connection to localhost (#8730)
* http use arraylist to handle shutdowns

* on windows use wsaconnectbyname to speed up localhost connections

* use arbitrary port

* close socket on setsockopt error

* use null timeout in wsaconnectbyname

* Update src/http.zig

* fix zig compile

* update hostname on linux

* [autofix.ci] apply automated fixes

* fix getpeername failing after connecting with socket

---------

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-07 12:19:41 -08:00
Georgijs
d672309547 c-ares dns on windows (#8737)
* c_ares dns on windows works

* handle errors

* fix invalid hostnames test
2024-02-07 16:26:53 -03:00
argosphil
e171f04ce6 Fix ref-counting of Bun.file(0) etc. (#8687) (#8741)
* Test for #8687

* Fix reference counting of Bun.file(0) etc. (#8687)

Fixes #8687.
2024-02-06 18:11:25 -08:00