| 80 | } |
| 81 | |
| 82 | static size_t getIndex(JSFunctionNativeCallContext& callContext, size_t index) { |
| 83 | auto parameter = callContext.getParameter(index); |
| 84 | return jsValueToIndex(callContext, parameter); |
| 85 | } |
| 86 | |
| 87 | static JSValueRef toJSIndex(JSFunctionNativeCallContext& callContext, size_t index) { |
| 88 | return callContext.getContext().newNumber(static_cast<int32_t>(index)); |
no test coverage detected