| 133 | |
| 134 | #if NAN_JSON_H_NEED_PARSE |
| 135 | inline v8::Local<v8::Value> parse(v8::Local<v8::Value> arg) { |
| 136 | assert(!parse_cb_.IsEmpty() && "parse_cb_ is empty"); |
| 137 | AsyncResource resource("nan:JSON.parse"); |
| 138 | return parse_cb_.Call(1, &arg, &resource).FromMaybe(v8::Local<v8::Value>()); |
| 139 | } |
| 140 | #endif // NAN_JSON_H_NEED_PARSE |
| 141 | |
| 142 | #if NAN_JSON_H_NEED_STRINGIFY |
no test coverage detected