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: fix node::FatalException · nodejs/node@8930268

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
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,8 +1484,8 @@ void FatalException(Isolate* isolate,
14841484
Environment* env = Environment::GetCurrent(isolate);
14851485
Local<Object> process_object = env->process_object();
14861486
Local<String> fatal_exception_string = env->fatal_exception_string();
1487-
Local<Function> fatal_exception_function =
1488-
process_object->Get(fatal_exception_string).As<Function>();
1487+
Local<Value> fatal_exception_function =
1488+
process_object->Get(fatal_exception_string);
14891489

14901490
if (!fatal_exception_function->IsFunction()) {
14911491
// Failed before the process._fatalException function was added!
@@ -1500,7 +1500,8 @@ void FatalException(Isolate* isolate,
15001500

15011501
// This will return true if the JS layer handled it, false otherwise
15021502
Local<Value> caught =
1503-
fatal_exception_function->Call(process_object, 1, &error);
1503+
fatal_exception_function.As<Function>()
1504+
->Call(process_object, 1, &error);
15041505

15051506
if (fatal_try_catch.HasTerminated())
15061507
return;

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.