MCPcopy Create free account
hub / github.com/Snapchat/Valdi / toJSIndex

Function toJSIndex

valdi/src/valdi/runtime/JavaScript/Modules/ProtobufModule.cpp:87–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87static JSValueRef toJSIndex(JSFunctionNativeCallContext& callContext, size_t index) {
88 return callContext.getContext().newNumber(static_cast<int32_t>(index));
89}
90
91static void notifyAsyncCallbackError(const Ref<ValueFunction>& callback, const Error& error) {
92 (*callback)({

Callers 4

arenaCreateMessageMethod · 0.85
arenaDecodeMessageMethod · 0.85
arenaCopyMessageMethod · 0.85

Calls 2

newNumberMethod · 0.80
getContextMethod · 0.45

Tested by

no test coverage detected