File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -414,6 +414,12 @@ jsi::Value V8Runtime::evaluatePreparedJavaScript(
414
414
return evaluateJavaScript (sourceJs, sourceJs->sourceURL ());
415
415
}
416
416
417
+ #if REACT_NATIVE_MINOR_VERSION >= 75 || (REACT_NATIVE_MINOR_VERSION >= 74 && REACT_NATIVE_PATCH_VERSION >= 3)
418
+ void V8Runtime::queueMicrotask (const jsi::Function &callback) {
419
+ // TODO: add this when we revisit new architecture support
420
+ }
421
+ #endif // REACT_NATIVE_MINOR_VERSION >= 75 || (REACT_NATIVE_MINOR_VERSION >= 74 && REACT_NATIVE_PATCH_VERSION >= 3
422
+
417
423
bool V8Runtime::drainMicrotasks (int maxMicrotasksHint) {
418
424
v8::Locker locker (isolate_);
419
425
v8::Isolate::Scope scopedIsolate (isolate_);
Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ class V8Runtime : public facebook::jsi::Runtime {
75
75
const std::shared_ptr<const facebook::jsi::PreparedJavaScript> &js)
76
76
override ;
77
77
78
+ #if REACT_NATIVE_MINOR_VERSION >= 75 || (REACT_NATIVE_MINOR_VERSION >= 74 && REACT_NATIVE_PATCH_VERSION >= 3)
79
+ void queueMicrotask (const facebook::jsi::Function &callback) override ;
80
+ #endif // REACT_NATIVE_MINOR_VERSION >= 75 || (REACT_NATIVE_MINOR_VERSION >= 74 && REACT_NATIVE_PATCH_VERSION >= 3
78
81
bool drainMicrotasks (int maxMicrotasksHint = -1 ) override ;
79
82
80
83
facebook::jsi::Object global () override ;
You can’t perform that action at this time.
0 commit comments