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 ToObject() usage in exceptions.cc · nodejs/node@5228ec4

File tree

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

‎src/exceptions.cc‎

Copy file name to clipboardExpand all lines: src/exceptions.cc
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ Local<Value> UVException(Isolate* isolate,
137137
String::Concat(isolate, js_msg, FIXED_ONE_BYTE_STRING(isolate, "'"));
138138
}
139139

140-
Local<Object> e = Exception::Error(js_msg)->ToObject(isolate);
140+
Local<Object> e =
141+
Exception::Error(js_msg)->ToObject(isolate->GetCurrentContext())
142+
.ToLocalChecked();
141143

142144
e->Set(env->errno_string(), Integer::New(isolate, errorno));
143145
e->Set(env->code_string(), js_code);

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.