Jarred Sumner
6965b5c192
mild clean up
2022-11-20 07:02:53 -08:00
Jarred Sumner
dfa62b660d
[internal] Implement visitAdditionalChildren
2022-11-20 07:02:14 -08:00
Jarred Sumner
5ff2cd3418
[streams] Fix memory leak affecting React SSR and more
2022-11-20 06:58:29 -08:00
Jarred Sumner
f56eec6fa3
run clang-format on JSSink
2022-11-20 06:56:05 -08:00
Jarred Sumner
65330a32cc
[jsx] Disable jsxs
2022-11-20 04:55:36 -08:00
Jarred Sumner
003237b086
Typo
2022-11-20 01:45:57 -08:00
Jarred Sumner
70f89b1bfc
Add another test
2022-11-20 01:44:27 -08:00
Jarred Sumner
4f5f01a748
Fix flaky test
2022-11-20 01:44:18 -08:00
Jarred Sumner
e41d7a0bd5
[fetch] Add optimization for chunked encoding
2022-11-20 01:43:40 -08:00
Jarred Sumner
b745ae2667
[TCP] Make Socket more careful about GC
2022-11-20 00:58:46 -08:00
Jarred Sumner
2f1e9b2eb8
[streams] Fix exception in WritableStream
...
cc @Electroid
2022-11-19 23:37:52 -08:00
Jarred Sumner
c68b11e8cb
[streams] Fix exception in streams with 1 item that sometimes occurred
2022-11-19 23:05:03 -08:00
Jarred Sumner
16d20bde09
Set aggression level in tests
2022-11-19 22:35:26 -08:00
Jarred Sumner
bea44d948e
Fix freezing test due to calling GC 36,000 times
2022-11-19 22:35:16 -08:00
Jarred Sumner
b230e7a73a
[fetch] Fix sporadic data corruption bug in HTTP client and add fast path
...
- This removes memory pooling from the HTTP client which sometimes caused invalid memory to be written to the response body.
- This adds a fast path for small HTTP/HTTPS responses that makes it a single memory allocation for the response body, instead of copying & allocating a temporary buffer
cc @Electroid
2022-11-19 22:34:57 -08:00
Jarred Sumner
e024116b77
Add a couple more tests for redirects
2022-11-19 22:23:45 -08:00
Jarred Sumner
79b6d4734a
[internal] Add a function for appending without growing extra data
2022-11-19 22:23:20 -08:00
Jarred Sumner
dc26181da4
Add a log
2022-11-19 22:22:04 -08:00
Jarred Sumner
0603991beb
Make hidden mimalloc dump report process-wide stats instead of thread
2022-11-19 22:21:58 -08:00
Jarred Sumner
17fa4211ac
Introduce Bun.unsafe.gcAggressionLevel API
2022-11-19 22:21:35 -08:00
Jarred Sumner
81a1d8f589
[internal] Add assertion for freeing global strings
2022-11-19 22:15:20 -08:00
Jarred Sumner
055f1e9639
[napi] Fix missing instance data finalizer
2022-11-19 22:14:47 -08:00
Jarred Sumner
cac11ee826
[fetch] Fix bug with redirecting to a protocol-relative URL
2022-11-19 22:14:10 -08:00
Jarred Sumner
f8d9a8be87
[fetch] Fix bug with redirects losing the port number
2022-11-19 22:13:30 -08:00
Jarred Sumner
9c601542d0
Update to Mimalloc v2.0.7
2022-11-19 21:37:31 -08:00
Jarred Sumner
7c7769a7c7
Fix GC crash when handling rejected promises uncovered via BUN_GARBAGE_COLLECTOR_LEVEL
2022-11-19 04:59:38 -08:00
Jarred Sumner
17e8181b4e
Fix GC crash in Bun.file(string).text(), Bun.file(string).arrayBuffer(), Bun.file(string).json() uncovered via BUN_GARBAGE_COLLECTOR_LEVEL
2022-11-19 04:59:17 -08:00
Jarred Sumner
ee939f7a6d
Fix GC crash in Transpiler found via BUN_GARBAGE_COLLECTOR_LEVEL
2022-11-19 04:58:39 -08:00
Jarred Sumner
6cc89eff2c
[internal] Introduce JSPromise.Strong
2022-11-19 04:57:59 -08:00
Jarred Sumner
d6d04cab24
Fix GC crash with WebSocket uncovered thx to BUN_GARBAGE_COLLECTOR_LEVEL
2022-11-19 04:57:32 -08:00
Jarred Sumner
bb95f90a62
Introduce BUN_GARBAGE_COLLECTOR_LEVEL debug environment variable
2022-11-19 04:56:46 -08:00
Jarred Sumner
1806322554
Fix failing test
2022-11-19 04:16:31 -08:00
Jarred Sumner
38b5a85d8a
Fix a GC issue with Bun.spawn
...
The `Subprocess` object stays alive until the process exits, even if it's never referenced
2022-11-19 01:25:15 -08:00
Jarred Sumner
68b55cd855
Implement a singleton version of napi_get_instance_data and napi_set_instance_data
...
Still need to figure out how to do this without adding a layer of indirection to the global object as exposed to NAPI Addons
This code is not tested
2022-11-19 01:18:58 -08:00
Dylan Conway
43b4e1b67b
bun test matchers and tests ( #1526 )
...
* ignore webkit for cherry-pick
* toContain and toBeTruthy
* toBe null, undefined, falsy, toHaveProperty, .not
* markBindings
* remove toHaveProperty, undo ignore webkit, more tests
* undo ignore webkit
* remove bad tests
* check if length property exists for toHaveLength()
* fix call signature
* handle argument that is not an integer
* getLengthOfArray returns u64
* switch to truncate
* toHaveLength() edge cases
* add toBooleanSlow()
* infinity, nan, negative
2022-11-18 23:03:39 -08:00
Jarred Sumner
f3fb712051
Fix crash in process.env.FOO = bar that happened sometimes
2022-11-18 03:47:10 -08:00
Jarred Sumner
f6779193c0
console.timeLog() but no extra arguments yet
2022-11-16 05:16:30 -08:00
Jarred Sumner
29f72efac3
Mark some more commonjs modules
2022-11-16 05:15:56 -08:00
Jarred Sumner
4985a44fe2
Remove incorrect assertion
2022-11-16 05:13:17 -08:00
Jarred Sumner
6a9bc6f6c2
Another test
2022-11-16 04:58:51 -08:00
Jarred Sumner
bf6b174233
Make node:http.createServer work better
2022-11-16 04:42:33 -08:00
Jarred Sumner
5de98f23bb
Fix another assertion failure
2022-11-15 23:23:36 -08:00
Jarred Sumner
1d02104c51
Fix assertion failure
2022-11-15 23:23:23 -08:00
Jarred Sumner
4f22c39651
Handle trailing slash
2022-11-15 22:10:09 -08:00
Jarred Sumner
6c01a1191f
Fixes #1390
2022-11-15 21:58:31 -08:00
Jarred Sumner
b95f7d5bbc
Fixes #1403
...
cc @Electroid this should fix the fly.io api issue too
2022-11-15 21:40:54 -08:00
Jarred Sumner
c32013dbba
Never resize on close
2022-11-15 21:37:28 -08:00
Jarred Sumner
6cdb7e77dd
Handle blocking initial read
2022-11-15 21:01:08 -08:00
Jarred Sumner
0e7ed4c667
Prevent blocking write()
2022-11-15 20:57:21 -08:00
Jarred Sumner
3b802c9a13
Add non-standard headers API types
...
cc @colinhacks @Electroid
2022-11-15 18:32:57 -08:00