| 162 | } |
| 163 | |
| 164 | void IsConstructCall(const CallbackInfo& info) { |
| 165 | Function callback = info[0].As<Function>(); |
| 166 | bool isConstructCall = info.IsConstructCall(); |
| 167 | callback({Napi::Boolean::New(info.Env(), isConstructCall)}); |
| 168 | } |
| 169 | |
| 170 | Value NewTargetCallback(const CallbackInfo& info) { |
| 171 | return info.NewTarget(); |
nothing calls this directly
no test coverage detected