NOLINTNEXTLINE(readability-convert-member-functions-to-static)
| 853 | auto arena = Valdi::makeShared<ProtobufArena>(eagerDecoding, includeAllFieldsDuringEncoding); |
| 854 | |
| 855 | return makeWrappedObject(callContext.getContext(), arena, callContext.getExceptionTracker(), true); |
| 856 | } |
| 857 | |
| 858 | // NOLINTNEXTLINE(readability-convert-member-functions-to-static) |
| 859 | JSValueRef ProtobufModule::getFieldsForMessageDescriptor(JSFunctionNativeCallContext& callContext) { |
| 860 | auto messageFactory = getMessageFactory(callContext, 0); |
| 861 | CHECK_CALL_CONTEXT(callContext); |
| 862 | |
| 863 | auto descriptorIndex = getIndex(callContext, 1); |
| 864 | CHECK_CALL_CONTEXT(callContext); |
| 865 | |
| 866 | // Hold the factory lock for the entire sequence of factory calls so they complete atomically. |
| 867 | auto factoryLock = messageFactory->lock(); |
| 868 |
nothing calls this directly
no test coverage detected