Skip to content

Commit

Permalink
Update NativeNitroModules.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Sep 23, 2024
1 parent f73cebe commit 3a71496
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jsi::Value NativeNitroModules::get(jsi::Runtime& runtime, const jsi::PropNameID&
[this](jsi::Runtime& runtime, const jsi::Value& thisArg, const jsi::Value* args, size_t count) -> jsi::Value {
#ifdef NITRO_DEBUG
if (count != 1) [[unlikely]] {
throw jsi::JSError(runtime, "NitroModules.createHybridObject(..) expects 1 argument, but " + std::to_string(count) +
" were supplied!");
throw jsi::JSError(runtime,
"NitroModules.createHybridObject(..) expects 1 argument, but " + std::to_string(count) + " were supplied!");
}
#endif
jsi::String objectName = args[0].asString(runtime);
Expand Down

0 comments on commit 3a71496

Please sign in to comment.