GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: enable stack trace printing for V8 check failures · nodejs/node@cb35097

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_platform.cc
    • node_platform.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_platform.cc‎

Copy file name to clipboardExpand all lines: src/node_platform.cc
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,14 @@ TracingController* NodePlatform::GetTracingController() {
485485
return tracing_controller_;
486486
}
487487

488+
Platform::StackTracePrinter NodePlatform::GetStackTracePrinter() {
489+
return []() {
490+
fprintf(stderr, "\n");
491+
DumpBacktrace(stderr);
492+
fflush(stderr);
493+
};
494+
}
495+
488496
template <class T>
489497
TaskQueue<T>::TaskQueue()
490498
: lock_(), tasks_available_(), tasks_drained_(),
Collapse file

‎src/node_platform.h‎

Copy file name to clipboardExpand all lines: src/node_platform.h
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ class NodePlatform : public MultiIsolatePlatform {
169169
std::shared_ptr<v8::TaskRunner> GetForegroundTaskRunner(
170170
v8::Isolate* isolate) override;
171171

172+
Platform::StackTracePrinter GetStackTracePrinter() override;
173+
172174
private:
173175
std::shared_ptr<PerIsolatePlatformData> ForIsolate(v8::Isolate* isolate);
174176

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.