1 parent 3eb9cdd commit e156a44Copy full SHA for e156a44
1 file changed
cpp/RNMultithreadingInstaller.cpp
@@ -55,7 +55,8 @@ void install(jsi::Runtime& runtime) {
55
pool.enqueue([&resolver, &rejecter, run]() {
56
try {
57
auto& runtime = *manager->runtime;
58
- auto func = run->getValue(runtime).asObject(runtime).asFunction(runtime);
+ auto funcValue = run->getValue(runtime);
59
+ auto func = funcValue.asObject(runtime).asFunction(runtime);
60
auto result = func.callWithThis(runtime, func);
61
62
// TODO: I probably have to call this on the other thread again.
0 commit comments