MCPcopy Create free account
hub / github.com/Kudo/react-native-v8 / createObject

Method createObject

src/v8runtime/V8Runtime.cpp:825–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

823}
824
825jsi::Object V8Runtime::createObject() {
826 v8::Locker locker(isolate_);
827 v8::Isolate::Scope scopedIsolate(isolate_);
828 v8::HandleScope scopedHandle(isolate_);
829 v8::Context::Scope scopedContext(context_.Get(isolate_));
830
831 v8::Local<v8::Object> object = v8::Object::New(isolate_);
832 return make<jsi::Object>(new V8PointerValue(isolate_, object));
833}
834
835jsi::Object V8Runtime::createObject(
836 std::shared_ptr<jsi::HostObject> hostObject) {

Callers

nothing calls this directly

Calls 2

GetMethod · 0.80
BindFinalizerMethod · 0.80

Tested by

no test coverage detected