diff --git a/packages/react-native/ReactCommon/jsi/jsi/jsi.cpp b/packages/react-native/ReactCommon/jsi/jsi/jsi.cpp index bc953a55957..2d1003f1f83 100644 --- a/packages/react-native/ReactCommon/jsi/jsi/jsi.cpp +++ b/packages/react-native/ReactCommon/jsi/jsi/jsi.cpp @@ -87,10 +87,6 @@ NativeState::~NativeState() {} Runtime::~Runtime() {} -void Runtime::queueMicrotask(const jsi::Function& /*callback*/) { - throw JSINativeException("queueMicrotask is not implemented in this runtime"); -} - Instrumentation& Runtime::instrumentation() { class NoInstrumentation : public Instrumentation { std::string getRecordedGCStats() override { diff --git a/packages/react-native/ReactCommon/jsi/jsi/jsi.h b/packages/react-native/ReactCommon/jsi/jsi/jsi.h index d86005e4e37..d77255f61a8 100644 --- a/packages/react-native/ReactCommon/jsi/jsi/jsi.h +++ b/packages/react-native/ReactCommon/jsi/jsi/jsi.h @@ -214,7 +214,7 @@ class JSI_EXPORT Runtime { /// its event loop implementation. /// /// \param callback a function to be executed as a microtask. - virtual void queueMicrotask(const jsi::Function& callback); + virtual void queueMicrotask(const jsi::Function& callback) = 0; /// Drain the JavaScript VM internal Microtask (a.k.a. Job in ECMA262) queue. ///