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

Method stringify

nan_json.h:143–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141
142#if NAN_JSON_H_NEED_STRINGIFY
143 inline v8::Local<v8::Value> stringify(v8::Local<v8::Value> arg) {
144 assert(!stringify_cb_.IsEmpty() && "stringify_cb_ is empty");
145 AsyncResource resource("nan:JSON.stringify");
146 return stringify_cb_.Call(1, &arg, &resource)
147 .FromMaybe(v8::Local<v8::Value>());
148 }
149
150 inline v8::Local<v8::Value> stringify(v8::Local<v8::Value> arg,
151 v8::Local<v8::String> gap) {

Callers 1

Calls 4

NullFunction · 0.85
CallMethod · 0.80
IsEmptyMethod · 0.45
FromMaybeMethod · 0.45

Tested by

no test coverage detected