Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/lang/bun/files/patch-src_jsc_bindings_bindings.cpp
49052 views
1
-- Fix build with older JavaScriptCore: JSPromiseReaction::tryGetContext -> reaction->context().
2
3
--- src/jsc/bindings/bindings.cpp.orig 2026-05-14 00:25:32 UTC
4
+++ src/jsc/bindings/bindings.cpp
5
@@ -2276,7 +2276,7 @@ static void collectAsyncStackFramesFromPromise(JSC::VM
6
JSC::JSPromiseReaction* reaction = nullptr;
7
if (!dynamicCastValue(reactionsValue, &reaction))
8
return nullptr;
9
- JSC::JSValue context = JSC::JSPromiseReaction::tryGetContext(reactionsValue);
10
+ JSC::JSValue context = reaction->context();
11
JSC::InternalFieldTuple* tuple = nullptr;
12
if (dynamicCastValue(context, &tuple))
13
context = tuple->getInternalField(0);
14
15