aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-02 18:54:14 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-02 18:54:42 -0700
commit50cf08366870d5f2ccce3c3c79fb0571abcec676 (patch)
tree03382e320d4eff21d305cd009c0b1837b642595f /src/bun.js
parentdd9325d8c9ef79096cd133ad053714d3ea014e08 (diff)
downloadbun-50cf08366870d5f2ccce3c3c79fb0571abcec676.tar.gz
bun-50cf08366870d5f2ccce3c3c79fb0571abcec676.tar.zst
bun-50cf08366870d5f2ccce3c3c79fb0571abcec676.zip
Fix missing functions
Diffstat (limited to 'src/bun.js')
-rw-r--r--src/bun.js/bindings/ZigGlobalObject.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bun.js/bindings/ZigGlobalObject.h b/src/bun.js/bindings/ZigGlobalObject.h
index 9bd954a60..e91cf86bf 100644
--- a/src/bun.js/bindings/ZigGlobalObject.h
+++ b/src/bun.js/bindings/ZigGlobalObject.h
@@ -269,8 +269,11 @@ public:
Bun__TestScope__onReject,
Bun__TestScope__onResolve,
+
+ CallbackJob__onResolve,
+ CallbackJob__onReject,
};
- static constexpr size_t promiseFunctionsSize = 20;
+ static constexpr size_t promiseFunctionsSize = 22;
static PromiseFunctions promiseHandlerID(EncodedJSValue (*handler)(JSC__JSGlobalObject* arg0, JSC__CallFrame* arg1))
{
@@ -318,6 +321,10 @@ public:
return PromiseFunctions::Bun__TestScope__onReject;
} else if (handler == Bun__TestScope__onResolve) {
return PromiseFunctions::Bun__TestScope__onResolve;
+ } else if (handler == CallbackJob__onResolve) {
+ return PromiseFunctions::CallbackJob__onResolve;
+ } else if (handler == CallbackJob__onReject) {
+ return PromiseFunctions::CallbackJob__onReject;
} else {
RELEASE_ASSERT_NOT_REACHED();
}