We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 092a269 commit 2a0237eCopy full SHA for 2a0237e
package/cpp/FilamentProxy.cpp
@@ -29,6 +29,7 @@ jsi::Value FilamentProxy::get(jsi::Runtime& runtime, const jsi::PropNameID& prop
29
runtime, jsi::PropNameID::forUtf8(runtime, "loadModel"), 1,
30
[this](jsi::Runtime& runtime, const jsi::Value& thisValue, const jsi::Value* arguments, size_t count) -> jsi::Value {
31
if (count != 1) {
32
+ [[unlikely]];
33
throw jsi::JSError(runtime, "loadModel: Expected 1 argument(s), but received " + std::to_string(count) + "!");
34
}
35
std::string path = arguments[0].asString(runtime).utf8(runtime);
0 commit comments