diff options
author | 2023-02-15 19:20:40 -0300 | |
---|---|---|
committer | 2023-02-15 14:20:40 -0800 | |
commit | 597053ea91a83ed0ce98bf1b8bb59fbf282c3619 (patch) | |
tree | 51141e81e587d8ce747fe81fb6064f5740d5bc40 /src/bun.js/bindings/ZigGlobalObject.cpp | |
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/bun.js/bindings/ZigGlobalObject.cpp')
-rw-r--r-- | src/bun.js/bindings/ZigGlobalObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/bindings/ZigGlobalObject.cpp b/src/bun.js/bindings/ZigGlobalObject.cpp index 0f4fe92e2..8fd9f366a 100644 --- a/src/bun.js/bindings/ZigGlobalObject.cpp +++ b/src/bun.js/bindings/ZigGlobalObject.cpp @@ -1533,7 +1533,7 @@ JSC_DEFINE_HOST_FUNCTION(whenSignalAborted, (JSGlobalObject * globalObject, Call Ref<AbortAlgorithm> abortAlgorithm = JSAbortAlgorithm::create(vm, callFrame->uncheckedArgument(1).getObject()); - bool result = AbortSignal::whenSignalAborted(abortSignal->wrapped(), WTFMove(abortAlgorithm)); + bool result = WebCore::AbortSignal::whenSignalAborted(abortSignal->wrapped(), WTFMove(abortAlgorithm)); return JSValue::encode(result ? JSValue(JSC::JSValue::JSTrue) : JSValue(JSC::JSValue::JSFalse)); } |