File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
test-app/runtime/src/main/cpp/napi/hermes Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -13,17 +13,6 @@ JSR::JSR() {
1313 hermes::vm::RuntimeConfig::Builder ().withMicrotaskQueue (true ).build ();
1414 threadSafeRuntime = facebook::hermes::makeThreadSafeHermesRuntime (config);
1515
16- facebook::jsi::Function abc = facebook::jsi::Function::createFromHostFunction (
17- threadSafeRuntime->getUnsafeRuntime (),
18- facebook::jsi::PropNameID::forAscii (threadSafeRuntime->getUnsafeRuntime (),
19- " directFunction" ), 0 ,
20- [](Runtime &rt, const Value &thisVal, const Value *args, size_t count) -> Value {
21- return Value::undefined ();
22- });
23-
24- threadSafeRuntime->getUnsafeRuntime ().global ().setProperty (
25- threadSafeRuntime->getUnsafeRuntime (), " directFunction" , abc);
26-
2716 rt = (facebook::hermes::HermesRuntime *) &threadSafeRuntime->getUnsafeRuntime ();
2817}
2918
You can’t perform that action at this time.
0 commit comments