Index: src/messages.h |
diff --git a/src/messages.h b/src/messages.h |
index 164ede114ebde9b68d024d6387c44bc5dd94652c..d4c0001e8bff3607d81791a91c497be3664594f0 100644 |
--- a/src/messages.h |
+++ b/src/messages.h |
@@ -71,6 +71,11 @@ class CallSite { |
uint32_t wasm_func_index_ = static_cast<uint32_t>(-1); |
}; |
+// Formats a textual stack trace from the given structured stack trace. |
+// Note that this can call arbitrary JS code through Error.prepareStackTrace. |
+MaybeHandle<Object> FormatStackTrace(Isolate* isolate, Handle<JSObject> error, |
+ Handle<Object> stack_trace); |
+ |
// Determines how stack trace collection skips frames. |
enum FrameSkipMode { |
// Unconditionally skips the first frame. Used e.g. when the Error constructor |