| 13 | static Global<v8::Boolean> global; |
| 14 | |
| 15 | NAN_METHOD(ReturnAValue) { |
| 16 | const FunctionCallbackInfo<v8::Value> &cbinfo = info; |
| 17 | ReturnValue<v8::Value> ret = cbinfo.GetReturnValue(); |
| 18 | if (cbinfo.Length() == 1) { |
| 19 | ret.Set(To<v8::String>(info[0]).ToLocalChecked()); |
| 20 | } else { |
| 21 | ret.Set(New("default").ToLocalChecked()); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | NAN_METHOD(ReturnPrimitive) { |
| 26 | info.GetReturnValue().Set(true); |
nothing calls this directly
no test coverage detected