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

Method StackTrace

nan.h:545–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
544 (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
545 inline v8::MaybeLocal<v8::Value> StackTrace() const {
546 v8::Isolate *isolate = v8::Isolate::GetCurrent();
547 v8::EscapableHandleScope scope(isolate);
548 return scope.Escape(try_catch_.StackTrace(isolate->GetCurrentContext())
549 .FromMaybe(v8::Local<v8::Value>()));
550 }
551#else
552 inline MaybeLocal<v8::Value> StackTrace() const {
553 return try_catch_.StackTrace();

Callers

nothing calls this directly

Calls 2

EscapeMethod · 0.80
FromMaybeMethod · 0.45

Tested by

no test coverage detected