mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
allow no asyncContext
This commit is contained in:
@@ -1551,7 +1551,6 @@ JSC_DEFINE_HOST_FUNCTION(functionQueueMicrotask,
|
||||
auto function = globalObject->performMicrotaskFunction();
|
||||
#if ASSERT_ENABLED
|
||||
ASSERT_WITH_MESSAGE(function, "Invalid microtask function");
|
||||
ASSERT_WITH_MESSAGE(!asyncContext.isEmpty(), "Invalid microtask context");
|
||||
ASSERT_WITH_MESSAGE(!callback.isEmpty(), "Invalid microtask callback");
|
||||
#endif
|
||||
|
||||
|
||||
@@ -3471,7 +3471,6 @@ void JSC__JSPromise__rejectOnNextTickWithHandled(JSC::JSPromise* promise, JSC::J
|
||||
|
||||
#if ASSERT_ENABLED
|
||||
ASSERT_WITH_MESSAGE(microtaskFunction, "Invalid microtask function");
|
||||
ASSERT_WITH_MESSAGE(!asyncContext.isEmpty(), "Invalid microtask context");
|
||||
ASSERT_WITH_MESSAGE(rejectPromiseFunction, "Invalid microtask callback");
|
||||
ASSERT_WITH_MESSAGE(!value.isEmpty(), "Invalid microtask value");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user