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

Function GetSourceLine

nan_maybe_43_inl.h:299–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299inline
300MaybeLocal<v8::String> GetSourceLine(v8::Local<v8::Message> msg) {
301 v8::Isolate *isolate = v8::Isolate::GetCurrent();
302 v8::EscapableHandleScope scope(isolate);
303 return scope.Escape(msg->GetSourceLine(isolate->GetCurrentContext())
304 .FromMaybe(v8::Local<v8::String>()));
305}
306
307inline Maybe<int> GetLineNumber(v8::Local<v8::Message> msg) {
308 v8::Isolate *isolate = v8::Isolate::GetCurrent();

Callers

nothing calls this directly

Calls 2

EscapeMethod · 0.80
FromMaybeMethod · 0.45

Tested by

no test coverage detected