diff options
author | 2023-02-15 19:20:40 -0300 | |
---|---|---|
committer | 2023-02-15 14:20:40 -0800 | |
commit | 597053ea91a83ed0ce98bf1b8bb59fbf282c3619 (patch) | |
tree | 51141e81e587d8ce747fe81fb6064f5740d5bc40 /src/string_immutable.zig | |
parent | 1c221d33b0def3810c262bd19a4bf8060389dae0 (diff) | |
download | bun-597053ea91a83ed0ce98bf1b8bb59fbf282c3619.tar.gz bun-597053ea91a83ed0ce98bf1b8bb59fbf282c3619.tar.zst bun-597053ea91a83ed0ce98bf1b8bb59fbf282c3619.zip |
feat(fetch) AbortSignal (#2019)
* add fetch abort signal
* get aborted (still segfaults)
* bidings.zig u0 error
* still GC/memory error
* fix start crash
* fix AbortSignal fromJS
* change fromJS to obj.as
* addAbortSignalEventListenner
* handle abort types, and add tests
* fix tests
* add custom reason test
* merge 2 substring methods, use MAKE_STATIC_STRING_IMPL
* fix create AbortError and TimeoutError, move globalThis and exception creation to main thread
* fix tests and rebuild headers
* no need to check with substring reason is already an exception
* no need to check with substring reason is already an exception
* fix dumb error inverting conditions for check reason
* fix custom reason behavior
Diffstat (limited to 'src/string_immutable.zig')
-rw-r--r-- | src/string_immutable.zig | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/string_immutable.zig b/src/string_immutable.zig index 9d36d0c78..e012b6e5a 100644 --- a/src/string_immutable.zig +++ b/src/string_immutable.zig @@ -1133,7 +1133,6 @@ pub fn toUTF16Alloc(allocator: std.mem.Allocator, bytes: []const u8, comptime fa else => return out, } } else null; - var output = output_ orelse fallback: { var list = try std.ArrayList(u16).initCapacity(allocator, i + 2); list.items.len = i; |