diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-04-12 19:55:03 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-04-15 03:11:43 +0300 |
commit | e0a7fd7d214300496a3b63eec74296661d844a2d (patch) | |
tree | bdab5bf444437748cd7a5b1f2749a6becebcab36 /src/node_internals.h | |
parent | 907ebdd76d45aa7f5dbd0972da79a959e6f34246 (diff) |
src: use basename(argv0) for --trace-uncaught suggestion
Refs: https://github.com/nodejs/node/pull/32797#discussion_r407222290
PR-URL: https://github.com/nodejs/node/pull/32798
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r-- | src/node_internals.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index dfb2c6e0c37..fa3ba022fe7 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -396,6 +396,10 @@ BaseObjectPtr<AsyncWrap> CreateHeapSnapshotStream( Environment* env, HeapSnapshotPointer&& snapshot); } // namespace heap +namespace fs { +std::string Basename(const std::string& str, const std::string& extension); +} // namespace fs + } // namespace node #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS |