aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/javascript/jsc/webcore/response.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/javascript/jsc/webcore/response.zig b/src/javascript/jsc/webcore/response.zig
index eef272055..8d525f211 100644
--- a/src/javascript/jsc/webcore/response.zig
+++ b/src/javascript/jsc/webcore/response.zig
@@ -1817,7 +1817,7 @@ pub const Blob = struct {
}
const fd = this.getFd() catch return;
- const needs_close = this.file_store.pathlike == .path;
+ const needs_close = this.file_store.pathlike == .path and fd != 0;
const stat: std.os.Stat = switch (JSC.Node.Syscall.fstat(fd)) {
.result => |result| result,
.err => |err| {
@@ -1963,6 +1963,7 @@ pub const Blob = struct {
file_offset: u64,
) AsyncIO.WriteError!SizeType {
var aio = &AsyncIO.global;
+ this.wrote = 0;
aio.write(
*WriteFile,
this,
@@ -2047,6 +2048,7 @@ pub const Blob = struct {
if (needs_close) {
this.doClose() catch {};
}
+ this.wrote = @truncate(SizeType, total_written);
return;
};
remain = remain[wrote_len..];
new-integrations-demo Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs/src/components/ThemeToggle.tsx (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2021-10-14Expose Vue component names for devtools (#1512)Gravatar Levi 3-3/+10
* Expose name on host component for Vue devtools * Add changeset * Update changeset to patch from minor * [ci] collect stats * [ci] collect stats Co-authored-by: leviceccato <leviceccato@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
2021-10-14Fix type error in blog-multiple-authors example (#1553)Gravatar Yoshiaki Togami 4-4/+9
* chore: add description to avoid type error * fix: fix canonical url type in main head component
2021-10-14Add Vercel sponsorship logo (#1555)Gravatar Drew Powers 8-48/+60
* Add Vercel sponsorship logo Also normalize other logos * Add Vercel logo to www * Add logos to docs
2021-10-14Include pnpm example on "Installation" page (#1554)Gravatar Henrique Borges 1-0/+5
2021-10-14Added descriptions to docs pages (#1550)Gravatar AsyncBanana 22-8/+28
2021-10-14Only run `.github/workflows/stats.yml` locally, not on forks (#1549)Gravatar Caleb Jasik 1-0/+1
2021-10-14[ci] collect statsGravatar FredKSchott 1-0/+1
2021-10-13Add Community Themes and separate Featured Theme (#1543)Gravatar Mark Teekman 2-8/+30
* Separate object for featured and community themes I've split up the two so there's the featured one at the top at the page and community ones below the official themes * Add community themes and change featured themes * Add comma after featured object
2021-10-13Change publish date el to be more accessible (#1522)Gravatar AsyncBanana 2-2/+2
2021-10-13[ci] yarn formatGravatar matthewp 1-1/+1
2021-10-13docs: unify concepts in Spanish version (#1545)Gravatar Jorge del Casar 6-11/+11
2021-10-13[ci] yarn formatGravatar matthewp 1-1/+1