aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api/server.zig
diff options
context:
space:
mode:
authorGravatar Ciro Spaciari <ciro.spaciari@gmail.com> 2023-03-02 16:49:32 -0300
committerGravatar GitHub <noreply@github.com> 2023-03-02 11:49:32 -0800
commitc81043bf5eb1ad39c9e193c17febe9ba24c21271 (patch)
tree4a982edfd73346f5ebe4d2ff07795728b0175120 /src/bun.js/api/server.zig
parent156c1d4bec17338e791b99a792f2458643a1d84c (diff)
downloadbun-c81043bf5eb1ad39c9e193c17febe9ba24c21271.tar.gz
bun-c81043bf5eb1ad39c9e193c17febe9ba24c21271.tar.zst
bun-c81043bf5eb1ad39c9e193c17febe9ba24c21271.zip
put AbortSignal in WebCore namespace (#2267)
Diffstat (limited to 'src/bun.js/api/server.zig')
-rw-r--r--src/bun.js/api/server.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bun.js/api/server.zig b/src/bun.js/api/server.zig
index 8b4413737..0ecd684bd 100644
--- a/src/bun.js/api/server.zig
+++ b/src/bun.js/api/server.zig
@@ -650,7 +650,7 @@ fn NewRequestContext(comptime ssl_enabled: bool, comptime debug_mode: bool, comp
/// this prevents an extra pthread_getspecific() call which shows up in profiling
allocator: std.mem.Allocator,
req: *uws.Request,
- signal: ?*JSC.AbortSignal = null,
+ signal: ?*JSC.WebCore.AbortSignal = null,
method: HTTP.Method,
aborted: bool = false,
finalized: bun.DebugOnly(bool) = bun.DebugOnlyDefault(false),
@@ -1024,7 +1024,7 @@ fn NewRequestContext(comptime ssl_enabled: bool, comptime debug_mode: bool, comp
if (this.signal) |signal| {
this.signal = null;
if (!signal.aborted()) {
- const reason = JSC.AbortSignal.createAbortError(JSC.ZigString.static("The user aborted a request"), &JSC.ZigString.Empty, this.server.globalThis);
+ const reason = JSC.WebCore.AbortSignal.createAbortError(JSC.ZigString.static("The user aborted a request"), &JSC.ZigString.Empty, this.server.globalThis);
reason.ensureStillAlive();
_ = signal.signal(reason);
}
@@ -1122,7 +1122,7 @@ fn NewRequestContext(comptime ssl_enabled: bool, comptime debug_mode: bool, comp
if (this.signal) |signal| {
this.signal = null;
if (this.aborted and !signal.aborted()) {
- const reason = JSC.AbortSignal.createAbortError(JSC.ZigString.static("The user aborted a request"), &JSC.ZigString.Empty, this.server.globalThis);
+ const reason = JSC.WebCore.AbortSignal.createAbortError(JSC.ZigString.static("The user aborted a request"), &JSC.ZigString.Empty, this.server.globalThis);
reason.ensureStillAlive();
_ = signal.signal(reason);
}