diff options
author | 2022-09-28 23:34:03 -0700 | |
---|---|---|
committer | 2022-09-28 23:34:03 -0700 | |
commit | 16929129f0259c63f63d7db20e2121dc2581deaa (patch) | |
tree | 8a384c4706425c4dd6b6c6b90302374f223e219e /src/bun.js/bindings/ZigGlobalObject.h | |
parent | 524e48a81dfc6106ffcdd07b6fd035000b03146c (diff) | |
download | bun-16929129f0259c63f63d7db20e2121dc2581deaa.tar.gz bun-16929129f0259c63f63d7db20e2121dc2581deaa.tar.zst bun-16929129f0259c63f63d7db20e2121dc2581deaa.zip |
Clean up some of the event loop code
Diffstat (limited to 'src/bun.js/bindings/ZigGlobalObject.h')
-rw-r--r-- | src/bun.js/bindings/ZigGlobalObject.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bun.js/bindings/ZigGlobalObject.h b/src/bun.js/bindings/ZigGlobalObject.h index 37c9c492c..550d4d853 100644 --- a/src/bun.js/bindings/ZigGlobalObject.h +++ b/src/bun.js/bindings/ZigGlobalObject.h @@ -256,8 +256,11 @@ public: jsFunctionOnLoadObjectResultResolve, jsFunctionOnLoadObjectResultReject, + + Bun__TestScope__onReject, + Bun__TestScope__onResolve, }; - static constexpr size_t promiseFunctionsSize = 18; + static constexpr size_t promiseFunctionsSize = 20; static PromiseFunctions promiseHandlerID(EncodedJSValue (*handler)(JSC__JSGlobalObject* arg0, JSC__CallFrame* arg1)) { @@ -301,6 +304,10 @@ public: return PromiseFunctions::jsFunctionOnLoadObjectResultResolve; } else if (handler == jsFunctionOnLoadObjectResultReject) { return PromiseFunctions::jsFunctionOnLoadObjectResultReject; + } else if (handler == Bun__TestScope__onReject) { + return PromiseFunctions::Bun__TestScope__onReject; + } else if (handler == Bun__TestScope__onResolve) { + return PromiseFunctions::Bun__TestScope__onResolve; } else { RELEASE_ASSERT_NOT_REACHED(); } |