Skip to content

Commit 62cfaaa

Browse files
committed
hermes: cleanup jsr runtime
1 parent bb22a67 commit 62cfaaa

File tree

1 file changed

+0
-11
lines changed
  • test-app/runtime/src/main/cpp/napi/hermes

1 file changed

+0
-11
lines changed

test-app/runtime/src/main/cpp/napi/hermes/jsr.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)