NOLINTNEXTLINE(readability-convert-member-functions-to-static)
| 853 | |
| 854 | // NOLINTNEXTLINE(readability-convert-member-functions-to-static) |
| 855 | JSValueRef ProtobufModule::createArena(JSFunctionNativeCallContext& callContext) { |
| 856 | auto eagerDecoding = callContext.getParameterAsBool(0); |
| 857 | CHECK_CALL_CONTEXT(callContext); |
| 858 | |
| 859 | auto includeAllFieldsDuringEncoding = callContext.getParameterAsBool(1); |
| 860 | CHECK_CALL_CONTEXT(callContext); |
| 861 | |
| 862 | auto arena = Valdi::makeShared<ProtobufArena>(eagerDecoding, includeAllFieldsDuringEncoding); |
| 863 | |
| 864 | return makeWrappedObject(callContext.getContext(), arena, callContext.getExceptionTracker(), true); |
| 865 | } |
| 866 | |
| 867 | // NOLINTNEXTLINE(readability-convert-member-functions-to-static) |
| 868 | JSValueRef ProtobufModule::getFieldsForMessageDescriptor(JSFunctionNativeCallContext& callContext) { |
nothing calls this directly
no test coverage detected