NOLINTNEXTLINE(readability-convert-member-functions-to-static)
| 942 | if (callContext.getContext().isValueUndefined(jsContextHandler)) { |
| 943 | context = _contextManager->createContext(nullptr, nullptr, /* deferRender */ true); |
| 944 | } else { |
| 945 | if (_defaultViewManagerContext == nullptr) { |
| 946 | return callContext.throwError(Error("Cannot create context without a default ViewManagerContext")); |
| 947 | } |
| 948 | |
| 949 | auto handler = Valdi::makeShared<JavaScriptComponentContextHandler>(*this, nullptr, *_logger); |
| 950 | auto globalRef = |
| 951 | makeShared<JSValueRefHolder>(callContext.getContext(), |
| 952 | jsContextHandler, |
| 953 | ReferenceInfoBuilder(callContext.getReferenceInfo()).withParameter(0).build(), |
| 954 | callContext.getExceptionTracker(), |
| 955 | true); |
| 956 | handler->setJsContextHandler(globalRef); |
nothing calls this directly
no test coverage detected