| 60 | } |
| 61 | |
| 62 | Value CallWithVector(const CallbackInfo& info) { |
| 63 | Function func = info[0].As<Function>(); |
| 64 | std::vector<napi_value> args; |
| 65 | args.reserve(3); |
| 66 | args.push_back(info[1]); |
| 67 | args.push_back(info[2]); |
| 68 | args.push_back(info[3]); |
| 69 | return MaybeUnwrap(func.Call(args)); |
| 70 | } |
| 71 | |
| 72 | Value CallWithVectorUsingCppWrapper(const CallbackInfo& info) { |
| 73 | Function func = info[0].As<Function>(); |
nothing calls this directly
no test coverage detected