| 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(); |