Skip to content

Commit

Permalink
Merge pull request #87 from chrfalch/fix/no-prox-for-hostobjects
Browse files Browse the repository at this point in the history
fix: hostobjects are not proxied
  • Loading branch information
chrfalch authored Feb 21, 2023
2 parents c1df4c0 + d51e8eb commit d62d76c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/wrappers/WKTJsiObjectWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class JsiObjectWrapper : public JsiHostObject,
if (getType() == JsiWrapperType::Object) {
return getObjectAsProxy(runtime, shared_from_this());
} else if (getType() == JsiWrapperType::HostObject) {
return getObjectAsProxy(runtime, _hostObject);
return jsi::Object::createFromHostObject(runtime, _hostObject);
}
return JsiWrapper::getAsProxyOrValue(runtime);
}
Expand Down

0 comments on commit d62d76c

Please sign in to comment.