| 152 | } |
| 153 | |
| 154 | Value CallConstructorWithCStyleArray(const CallbackInfo& info) { |
| 155 | Function func = info[0].As<Function>(); |
| 156 | std::vector<napi_value> args; |
| 157 | args.reserve(3); |
| 158 | args.push_back(info[1]); |
| 159 | args.push_back(info[2]); |
| 160 | args.push_back(info[3]); |
| 161 | return MaybeUnwrap(func.New(args.size(), args.data())); |
| 162 | } |
| 163 | |
| 164 | void IsConstructCall(const CallbackInfo& info) { |
| 165 | Function callback = info[0].As<Function>(); |
nothing calls this directly
no test coverage detected