diff options
author | 2023-04-28 17:40:44 -0300 | |
---|---|---|
committer | 2023-04-28 13:40:44 -0700 | |
commit | 4515a6373e22246e2ec6df4475dc63a965bf9c4a (patch) | |
tree | b7a3dd436ecbbef454468ed71a7583ee590e16f7 /src/js_ast.zig | |
parent | c383638ddd0b220c482e2e0ec7baa2f650d05776 (diff) | |
download | bun-4515a6373e22246e2ec6df4475dc63a965bf9c4a.tar.gz bun-4515a6373e22246e2ec6df4475dc63a965bf9c4a.tar.zst bun-4515a6373e22246e2ec6df4475dc63a965bf9c4a.zip |
Improves Body.Value life cycle and Signal life cycle on server.zig (#2752)
* reestruct request body value and signal
* revert react-hello-world
* fix constructInto and test
* fmt
* fix body nullable
* Request can outlive RequestContext
* fmt
* BodyValue is now HiveRef
* hasDecl for Ref and HiveRef
* fix deinit call on Ref/HiveRef
* adds InlineBlob
* fix Bun.inspect when using InlineBlob
* revert InlineBlob
* Fix mimalloc-debug
* Add TODO note
* fix: make node:crypto Hash.copy work correctly (#2761)
This commit will also:
- add a CryptoHasher.copy function
- make CryptoHasher.digest reset the hasher so it can be reused
Resolves #2651
* :nail_care:
* address unicode issue (#2763)
* Fix an oopsie
* Another oopsie
* use inline for
* Fixup
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
* Request can outlive RequestContext
* fmt
* garantee to have the abort signnal attached to the server before abort the client on bun-server test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Co-authored-by: Silver <14016168+silversquirl@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
Diffstat (limited to 'src/js_ast.zig')
-rw-r--r-- | src/js_ast.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_ast.zig b/src/js_ast.zig index 3cf99211b..d2cb467d1 100644 --- a/src/js_ast.zig +++ b/src/js_ast.zig @@ -9326,7 +9326,7 @@ pub const Macro = struct { blob_ = resp.body.use(); } else if (value.as(JSC.WebCore.Request)) |resp| { mime_type = HTTP.MimeType.init(resp.mimeType()); - blob_ = resp.body.use(); + blob_ = resp.body.value.use(); } else if (value.as(JSC.WebCore.Blob)) |resp| { blob_ = resp.*; blob_.?.allocator = null; |