Skip to content

Commit 2a0237e

Browse files
committed
Update FilamentProxy.cpp
1 parent 092a269 commit 2a0237e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package/cpp/FilamentProxy.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jsi::Value FilamentProxy::get(jsi::Runtime& runtime, const jsi::PropNameID& prop
2929
runtime, jsi::PropNameID::forUtf8(runtime, "loadModel"), 1,
3030
[this](jsi::Runtime& runtime, const jsi::Value& thisValue, const jsi::Value* arguments, size_t count) -> jsi::Value {
3131
if (count != 1) {
32+
[[unlikely]];
3233
throw jsi::JSError(runtime, "loadModel: Expected 1 argument(s), but received " + std::to_string(count) + "!");
3334
}
3435
std::string path = arguments[0].asString(runtime).utf8(runtime);

0 commit comments

Comments
 (0)