| 896 | NativeGodotModuleCxxSpec(std::move(jsInvoker)) {} |
| 897 | |
| 898 | bool NativeGodotModule::installTurboModule(jsi::Runtime &rt) { |
| 899 | jsi::Value godotModule = createNativeGodotModule(rt, jsInvoker_); |
| 900 | |
| 901 | rt.global().setProperty(rt, NATIVE_GODOT_MODULE_PROPERTY, godotModule); |
| 902 | if (!rt.global().getProperty(rt, NATIVE_GODOT_MODULE_PROPERTY).isObject()) { |
| 903 | LOGE("Could not set NativeGodotModule property."); |
| 904 | return false; |
| 905 | } |
| 906 | return true; |
| 907 | } |
| 908 | |
| 909 | }; //namespace facebook::react |
nothing calls this directly
no test coverage detected