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: elevate v8 namespace · nodejs/node@8fe70e8

File tree

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

‎src/cares_wrap.cc‎

Copy file name to clipboardExpand all lines: src/cares_wrap.cc
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ using v8::FunctionTemplate;
6464
using v8::HandleScope;
6565
using v8::Int32;
6666
using v8::Integer;
67+
using v8::Isolate;
6768
using v8::Local;
6869
using v8::Null;
6970
using v8::Object;
@@ -1917,7 +1918,7 @@ int ParseIP(const char* ip, ParseIPResult* result = nullptr) {
19171918
}
19181919

19191920
void CanonicalizeIP(const FunctionCallbackInfo<Value>& args) {
1920-
v8::Isolate* isolate = args.GetIsolate();
1921+
Isolate* isolate = args.GetIsolate();
19211922
node::Utf8Value ip(isolate, args[0]);
19221923

19231924
ParseIPResult result;
@@ -1927,7 +1928,7 @@ void CanonicalizeIP(const FunctionCallbackInfo<Value>& args) {
19271928
char canonical_ip[INET6_ADDRSTRLEN];
19281929
const int af = (rc == 4 ? AF_INET : AF_INET6);
19291930
CHECK_EQ(0, uv_inet_ntop(af, &result, canonical_ip, sizeof(canonical_ip)));
1930-
v8::Local<String> val = String::NewFromUtf8(isolate, canonical_ip,
1931+
Local<String> val = String::NewFromUtf8(isolate, canonical_ip,
19311932
v8::NewStringType::kNormal).ToLocalChecked();
19321933
args.GetReturnValue().Set(val);
19331934
}

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.