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: cleanup in all return paths in node::Start · nodejs/node@12fb739

File tree

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

‎src/node.cc‎

Copy file name to clipboardExpand all lines: src/node.cc
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ inline int Start(Isolate* isolate, IsolateData* isolate_data,
760760
HandleScope handle_scope(isolate);
761761
Local<Context> context = NewContext(isolate);
762762
Context::Scope context_scope(context);
763+
int exit_code = 0;
763764
Environment env(
764765
isolate_data,
765766
context,
@@ -780,7 +781,8 @@ inline int Start(Isolate* isolate, IsolateData* isolate_data,
780781
true);
781782
if (env.options()->debug_options().inspector_enabled &&
782783
!env.inspector_agent()->IsListening()) {
783-
return 12; // Signal internal error.
784+
exit_code = 12; // Signal internal error.
785+
goto exit;
784786
}
785787
#else
786788
// inspector_enabled can't be true if !HAVE_INSPECTOR or !NODE_USE_V8_PLATFORM
@@ -821,10 +823,11 @@ inline int Start(Isolate* isolate, IsolateData* isolate_data,
821823

822824
env.set_trace_sync_io(false);
823825

824-
const int exit_code = EmitExit(&env);
826+
exit_code = EmitExit(&env);
825827

826828
WaitForInspectorDisconnect(&env);
827829

830+
exit:
828831
env.set_can_call_into_js(false);
829832
env.stop_sub_worker_contexts();
830833
uv_tty_reset_mode();

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.