MCPcopy Create free account
hub / github.com/nodejs/nan / parse

Method parse

nan_json.h:135–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

1to2.jsFile · 0.80
json-parse-test.jsFile · 0.80

Calls 3

CallMethod · 0.80
IsEmptyMethod · 0.45
FromMaybeMethod · 0.45

Tested by

no test coverage detected